static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { handleException((Exception) e.ExceptionObject); }