Web Messaging API: Programmatic session closure returning 400

Tried to close a guest session from the backend using the standard REST proxy. I attempted to close the participant session via the API. The response is a 400 Bad Request with "reason": "invalid_state".

The conversation is active and the participant is connected. Checked the docs but couldn’t find a specific state requirement for this operation. Any idea why it’s rejecting the call?