clean-up in pmag_basic_dialogs