private static void HandleDomainException(object sender, UnhandledExceptionEventArgs e) { HandleException((e.ExceptionObject as Exception) ?? new Exception()); }