Improved the messages/exception dialog.