/// <summary>
 /// The on before close.
 /// </summary>
 /// <param name="browser">
 /// The browser.
 /// </param>
 protected override void OnBeforeClose(CefBrowser browser)
 {
     _browser.InvokeAsyncIfPossible(() => _browser.OnBeforeClose(new BeforeCloseEventArgs()));
 }