private static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs args)
{
Exception exceptionObject = args.ExceptionObject as Exception;
if (exceptionObject != null)
{
UnhandledExceptionHandler.PrintException("Unhandled Exception: ", exceptionObject);
}
UnhandledExceptionHandler.NativeUnhandledExceptionHandler();
}