Added enable / disable logic for exporting and closing Memberships.