/// <summary> /// Close the application /// </summary> private void ForceQuit() { try { WebBrowserPlayerCallbackService.OnBrowserClosing(); // Let MePo know we're closing if (_connector != null) { _connector.OnClosing(); } ForceClose = true; } catch (Exception ex) { _logger.Error(string.Format("{0}\r\n{1}", ex.Message, ex.StackTrace)); } finally { Thread.Sleep(1000); // Wait 1 second for MePo to show Process.GetCurrentProcess().Kill(); // In case we've got some weird browser issues or something hogging the process } }