I am running chrome on ubuntu 16.04. Every time I reboot my machine and reopen chrome, chrome tells me that it was not closed properly and needs to restore my tabs. I tried disabling chrome's ability to run background apps, as noted here, with no success.
7 Answers
I too see this problem with chrome not shutting down properly on Ubuntu 17.10. In my case it turned out to be the forecastfox extension. When it's running and I close chrome I can see in system monitor that the browser has not shut down completely and problems do occur when I start chrome the next time from chrome crashing to tabs needing to restore. If I disable forecastfox chrome shuts down fine and I see no problems the next time I open it.

- 51
-
I upvote this answer because browser extension is the cause in my case too. I used Browsec for VPN and disabling it solved the issue. – ezze Jun 03 '20 at 11:54
I've been seeing the same behaviour in Ubuntu 16.04 and 18.04 and no matter of debugging, tweaking, reading articles or trying anything fixed it.
I did however literally just find that if I logout before I reboot then it's fine. Not exactly a "solution", however it seems to appease the Chrome gods and allow it to exit gracefully.
Hope that is of some use

- 111
-
I kind of like having all my tabs restored upon rebooting. So I consider it less a bug and more an undocumented feature. – WinEunuuchs2Unix Jul 25 '19 at 01:22
This workaround does it for me Chrome v80, Ubuntu 18.04: Add a custome command to shut down Chrome gracefully before rebooting. What I did is to append to ~/.bash_aliases:
alias res="pkill --oldest chrome; sleep 3; sudo reboot"
Sleep is needed since it takes a bit time to shut chrome down. Then every time I want to reboot, I just run res from terminal. "res" is less typing for me as well.
Note: I think there are more proper ways to run command before rebooting. Please feel free to update.

- 123
In my case it was an out of date Chromecast extension. Removing it solved my problem.
I kind of like having all my tabs restored upon rebooting. So I consider it less a bug and more an undocumented feature.
You can simply click the X
to close the Chrome (or Firefox) Window and if it prompts, confirm the prompt "Close all tabs?". Then upon rebooting it will not prompt you to reopen previous tabs.

- 102,282
In my case running Pop!_OS 21.04
and Google Chrome 96.0.4664.45
, in the top bar there was a chrome status icon, I unchecked the option Let Chrome run in the background
and that seemed to solved it.

- 101
pidof chrome
if there is any Chrome process left over? – David Foerster Mar 04 '18 at 20:52