* Execute all pending gtk+ events before destroying the dialogs