Cleaning up message dialogs.