DataSelection: Added _cleaning_up flag to avoid creating new sub-guis during cleanup.
Hopefully this helps #1011