            //AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ExceptionHandler);


        //static void ExceptionHandler(object sender, UnhandledExceptionEventArgs e)
        //{
        //    Console.WriteLine("Global exception handled!");

        //    // Ideally you only want to do this if you conditionally compile so
        //    // it is not in the debug version of your program.
        //    Environment.Exit(1);
        //}