private static void UnhandledException(object sender, UnhandledExceptionEventArgs e) { if (Debugger.IsAttached) return; SendException((Exception) e.ExceptionObject); } }