Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am getting "Google Chrome didn't shut down correctly" twice a week - it becomes a very annoying problem -
I always fixed this issue by removing the chrome's default user profile and re-opening the chrome, but doing this will remove all my extensions / apps / bookmarks / settings.
but this is happening more often and I keep losing settings

is there a way to end this madness? I am running Win 8.1 / latest version of chrome

share|improve this question
    
Chrome shouldn't be crashing. You should disable your extensions to verify the error message still happens. – Ramhound Jan 6 '14 at 13:27
1  
writeclever.com/google-chrome-not-shutting-down see the solution there – avirk Jan 6 '14 at 13:32
    
@Ramhound the only extension I have is adblock plus – user44517 Jan 6 '14 at 15:57
    
@avirk I tried that among different methods but it keeps showing that message, I uninstalled chrome several times but the problem keeps coming back – user44517 Jan 6 '14 at 16:02
    
It could be that extension have you tried my suggestion? – Ramhound Jan 6 '14 at 17:07

11 Answers 11

I went into Settings / Advanced (in Chrome) and checked the box for "Continue running background apps when Google Chrome is closed" option. This fixed the problem for me.

Ironically, I went to this setting because another user had fixed it by UNCHECKING that option, which worked for him.

Perhaps simply changing the option causes Chrome to clean up something internally. I believe my bogus error msg began when Chrome actually DID fail to shut down correctly, and somehow the error flag got stuck.

share|improve this answer
2  
This suggestion solved the problem for me in Ubuntu 14.04. I tested this by shutting down the computer, with the option on and off. When it was on and I restarted, I got the error message, in the other case not. Essentially, with the option checked, closing Chrome does not really end Chrome, and shutting down with Chrome running makes Chrome think that it crashed. – atmelino Jan 15 '15 at 23:30
    
Works perfectly for Chromium on Ubuntu 14.04 – dgel Mar 8 '15 at 4:17
    
I was able to fix the problem by unchecking that box on Debian 8. – marcelocra Jul 4 '15 at 17:28
    
I can confirm that merely changing the state of this box fixes the issue on Ubuntu 15.10. Disable, restart, re-enable, restart allowed me to leave background services enabled and not get this error message every time I launch Chrome. – hobs Dec 20 '15 at 22:37

This was just happening to me too. Just do the following things:

  1. Open the folder %UserProfile%\AppData\Local\Google\Chrome\User Data\Default\
  2. Open the file preferences
  3. Towards the bottom, find the following line:

    "exit_type": "Crashed"
    

    Then replace Crashed with normal like this:

    "exit_type": "normal"
    
  4. Save and relaunch Chrome

The problem should be fixed!

share|improve this answer
5  
The same preference can be found and changed in the file ~/.config/google-chrome/[Profile]/Preferences on Ubuntu (and likely other Linux distributions), where [Profile] is the user profile name ("Profile 2" for me). – James Womack Dec 3 '14 at 14:34

This is how i solved Chrome not shutting down correctly! Simply start chrome automatically at start-up with the following command: google-chrome --no-startup-window

This solved it for me!

FYI: I am running Mint 64bit v17.1 (cinnamon)

share|improve this answer

On Windows it may be necessary to remove System, Hidden and Read-only attributes from the file %UserProfile%\AppData\Local\Google\Chrome\User Data\Default\Preferences due to malware corruption. The "crashed" status is preserved every launch because the file attributes forbid Chrome from removing the "crashed" status. You can do this with the following command (elevation is not required):

attrib -h -s -r "%UserProfile%\AppData\Local\Google\Chrome\User Data\Default\Preferences"

After opening Chrome and either clicking the 'x' or the 'restore' buttons on the warning, close Chrome and the next time you open it the error will be gone.

share|improve this answer

I fixed mine:

  • Create a new windows sign on Account - or just activate Guest Account

  • Using Win Explorer (Tools, Folder Options), Set it to show Hidden Files

  • Then go to: Users\new_or_guest_account\AppData\Local\Google

  • "Copy" the folder

  • Go to: Users\the_account_having_trouble\AppData\Local\Google

  • Delete (or rename) The Google Folder

  • "Paste" Google Folder

You should be good to go.

You can restore Bookmarks by copy and paste of the Bookmarks file that is in this folder: C:\Users\account\AppData\Local\Google\Chrome\User Data\Default

share|improve this answer

I recently solved this problem by removing the duplicate of my account in the beginning of the Preferences file.

Open: %UserProfile%\AppData\Local\Google\Chrome\User Data\Default\Preferences

And locate (probably at the top of the file)

"account_info": [ {
      "account_id": "address@gmail.com",
      "email": "adress@gmail.com",
      "gaia": "256524851203586575245"
   }, {
      "account_id": "adress@gmail.com",
      "email": "adress@gmail.com",
      "gaia": "256524851203586575245"
   } ],

I removed the duplicate, so i ended up with:

"account_info": [ {
      "account_id": "address@gmail.com",
      "email": "adress@gmail.com",
      "gaia": "256524851203586575245"
   } ],

This kept all my extensions and preferences. And this hasn't opened multiple tabs after start-up or given the "Google Chrome didn't shut down correctly" message even after shutting down windows without closing chrome.

(I did notice that the array contained a duplicate account again after a while but it didn't cause any problems.)

share|improve this answer

When trying to use Ryan's excellent answer, I found that the file %UserProfile%\AppData\Local\Google\Chrome\User Data\Default\Preferences was in use. I searched for it using Sysinternals Process Explorer's "Find Handle or DLL", found out that it was some Lenovo Utility - C:\Program Files (x86)\Lenovo\LocationAware\lpdagent.exe - Location Task Manager LPD Access Agent.

Solution: Killed lpdagent.exe, opened Chrome once - got "Google Chrome didn't shut down correctly" one more time, and then no more - the problem was fixed.

share|improve this answer

Not working since Chrome 43

I've used Ryan's (one time solution) and valentt's (needed to change another preference) answers to fix it forever (I hope so) on Ubuntu

add following to Startup Apllications (don't forget to change your profile name and chrome directory):

sed -i 's/exit_type\"\:\ \"Crashed/exit_type\"\:\ \"normal/g' /home/janot/.config/google-chrome-beta/Default/Preferences
share|improve this answer

I get this error every time there is a chrome update.

I find that I cannot save the preferences file as it is in use by another program (even with chrome shut down!). This indicates that chrome is running in the background.

My solution is to toggle the "Continue running background apps when Google Chrome is closed" setting.
[I switch it on, close chrome then start chrome and switch it off] This then allows me to change the "exit_type" in the preferences file as suggested above.

Works for me :)

share|improve this answer

I found the answers complicated so I just thought why not stop it from saving any browsing history, which must be what is not shutting down properly. I never refer to it anyway. So I stopped it from saving browsing history. It worked.

share|improve this answer
    
This is really a comment and not an answer to the original question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead? – DavidPostill Jan 2 at 19:01

Launch it using following command:

google chrome --restore-last-session

http://peter.sh/experiments/chromium-command-line-switches/#restore-last-session

From Gili's answer

share|improve this answer

protected by DavidPostill May 8 at 13:57

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.