def stop()

in src/backend/run_backend.py [0:0]


    def stop(self):
        """Stop the running container and the associated process if they exist."""
        try:
            if self.process:
                self.process.kill()
                self.process = None
        except Exception as e:
            logger.error(f"Failed to kill process: {str(e)}")
        
        try:
            subprocess.run(f"docker rm -f {BENCHMARKING_CONTAINER_NAME}", shell=True, check=True)
        except subprocess.CalledProcessError as e:
            logger.error(f"Failed to kill container: {str(e)}")