Make the dialog wrappers dispose their dialogs.