This method sends a close request to the API and verifies that the session was properly closed. It logs the session closure and raises an error if the session fails to close

Signature

def stop(self) -> None

Returns

None

Raises

  • ValueError: If the session hasn’t been started (no session_id available).
  • RuntimeError: If the session fails to close properly.