private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { RemoteLogger.ReportIssue(e.Exception); if (vissim.IsInstanciated) { vissim.Instance.Exit(); } }