Added a global (uncaught) exception handler, that displays the exception to the user.