src/vs/workbench/electron-sandbox/desktop.main.ts/DesktopMain/registerListeners
class DesktopMain:	private registerListeners(workbench: Workbench, storageService: NativeStorageService): void {

		// Workbench Lifecycle
		this._register(workbench.onWillShutdown(event => event.join(storageService.close(), 'join.closeStorage')));
		this._register(workbench.onDidShutdown(() => this.dispose()));
	}