src/vs/code/electron-browser/sharedProcess/sharedProcessMain.ts/SharedProcessMain/registerListeners
class SharedProcessMain:	private registerListeners(): void {

		// Dispose on exit
		const onExit = () => this.dispose();
		process.once('exit', onExit);
		ipcRenderer.once('vscode:electron-main->shared-process=exit', onExit);
	}