catch previously uncaught exception that was causing an error to flash on quit