For ENG-4135, fix bugs in ExportManager surround turning export on/off at runtime.