private void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e) { Log("Unhandled exception: " + e.ExceptionObject); Environment.Exit(1); }