static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { Dbg.WriteLine(e.ExceptionObject.ToString()); TextConsole.Singleton.UnInit(); Console.WriteLine(e.ExceptionObject); }