public static void DetachHandler() { AppDomain.CurrentDomain.UnhandledException -= UnhandledException; }