src/vs/workbench/services/host/browser/browserHostService.ts/BrowserHostService/withExpectedShutdown
class BrowserHostService:	private withExpectedShutdown(callback: () => void): void {

		// Update shutdown reason in a way that we do not show a dialog
		this.shutdownReason = HostShutdownReason.Api;

		callback();
	}