Closes a running session. Stops the agent, saves state, and sets the session status to Stopped. The call blocks until the container confirms the close or a timeout forces the status update.If the container has already exited, the endpoint directly updates the session status to Stopped and returns immediately.