src/vs/platform/storage/electron-main/storageMain.ts/BaseStorageMain/close
class BaseStorageMain:	async close(): Promise<void> {

		// Ensure we are not accidentally leaving
		// a pending initialized storage behind in
		// case close() was called before init()
		// finishes
		if (this.initializePromise) {
			await this.initializePromise;
		}

		// Propagate to storage lib
		await this.storage.close();

		// Signal as event
		this._onDidCloseStorage.fire();
	}