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