def datacollect(self):
        self.evq.stop()
        with self._objslock:
            for obj in self.objs():
                if isinstance(obj, nodes.PyCoreNode):
                    self.services.stopnodeservices(obj)
        self.emane.shutdown()
        self.updatectrlifhosts(remove=True)
        # Remove all four possible control networks. Does nothing if ctrlnet is not installed.
        self.addremovectrlif(node=None, remove=True)
        self.addremovectrlif(node=None, netidx=1, remove=True)
        self.addremovectrlif(node=None, netidx=2, remove=True)
        self.addremovectrlif(node=None, netidx=3, remove=True)

        # self.checkshutdown() is currently invoked from node delete handler
Tear down a running session. Stop the event loop and any running
dataset/ETHPy150Open coreemu/core/daemon/core/session.py/Session.datacollect