Added an dialog box for uncaught exceptions.