some dialogs are not destroyed after exiting.