Handle the user canceling out of dialogs.