private static void HandleThreadException(object sender, ThreadExceptionEventArgs e) { HandleException(e.Exception); }