void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) { e.SetObserved(); ShowUnhandledExceptionDialog(e.Exception); }