def stop(self) -> None:
        """
        Stop the session.
        This function must be called before the session exits.
        """
        self.logger.info(f"Session {self.session_id} is stopped")
        for worker in self.worker_instances.values():
            worker.close()

        Stop the session.
        This function must be called before the session exits.
        
taskweaver/session/session.py