* Electron version: 8.0.0
* Operating system: Linux - Fedora 31 - Kernel 5.4.13-201.fc31.x86_64

### Expected behavior
The local store should persist items even though the app is terminated as soon as the item was added.

### Actual behavior
If the app is terminated in less than 2 seconds after an item is added to local storage, the value is not available after the app is reopened.

### How to reproduce
1. Create a new electron app 
(I used the quick start from the website git clone https://github.com/electron/electron-quick-start)

0. Run the app using `npm start`

0. Run a JavaScript code that adds a new key/value pair to localStorage
````
localStorage.setItem("my-key", "my-value")
````

0. Within 3 seconds, terminate the app (killing the process or pressing Ctrl + C)
NOTE: If the app is closed properly (pressing Alt + F4 or click on the "X"), this issue does not occur.

0. Run the app again

0. Check for the localStorage items
````
localStorage.getItem("my-key")
````
Or in the Application tab from Developer Tools.

Both cases are not available neither the key nor the value
shell/browser/electron_browser_main_parts.h
#endif
#if defined(OS_LINUX)
  
  std::unique_ptr<DarkThemeObserver> dark_theme_observer_;
#endif
  std::unique_ptr<views::LayoutProvider> layout_provider_;
  
  std::unique_ptr<BrowserProcessImpl> fake_browser_process_;
  
  int* exit_code_ = nullptr;
  std::unique_ptr<JavascriptEnvironment> js_env_;
  std::unique_ptr<Browser> browser_;
  std::unique_ptr<NodeBindings> node_bindings_;
  std::unique_ptr<ElectronBindings> electron_bindings_;
  std::unique_ptr<NodeEnvironment> node_env_;
  std::unique_ptr<IconManager> icon_manager_;
  std::unique_ptr<base::FieldTrialList> field_trial_list_;
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
  std::unique_ptr<ElectronExtensionsClient> extensions_client_;
  std::unique_ptr<ElectronExtensionsBrowserClient> extensions_browser_client_;
#endif
  
  std::list<base::OnceClosure> destructors_;
  mojo::Remote<device::mojom::GeolocationControl> geolocation_control_;
  static ElectronBrowserMainParts* self_;
  DISALLOW_COPY_AND_ASSIGN(ElectronBrowserMainParts);
};
}  
#endif