private void OnUnhandledException(object sender, UnhandledExceptionEventArgs e) { HandleHostError((Exception)e.ExceptionObject); }