in electron/browserManager.ts [74:83]
async closeBrowser() {
if (this._browser == null || this._closingBrowser) return;
this._closingBrowser = true;
try {
await this._browser.close();
this.onBrowserClosed();
} catch (e) {
logger.error('Browser close threw an error', e);
}
}