Do not close the gui if the application crashes because of an unhandled exception. This makes the problem more obvious, than silently closing the application and only leaving a log entry in the log file