static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { Errors.Report(e.Exception); }