don't close when the user is manipulating the panel
if the user is dragging applets (so the panel has a mouse grabber item) don't try to close the dialog or will "break" the drag event currently in progress, leaving the panel in an inconsistent state