Web Messaging SDK: Programmatically closing guest session from backend

Trying to kill a web messaging session from the server side without waiting for the client to drop off. The use case is a bot that determines the user is a bot/spam and needs to terminate the interaction immediately.

I’ve been digging through the @genesyscloud/webmessaging-orchestration source and the REST API docs. The guest lifecycle is tied to the guestSessionId and webChatSessionId.

Calling DELETE /api/v2/conversations/messaging/contacts/{contactId} removes the contact, but the session remains open in the UI if the widget is still mounted. I tried sending a custom event via the orchestration API:

const response = await platformClient.Messaging.postWebmessagingOrchestrationSessionEvents({
 sessionId: guestSessionId,
 body: {
 events: [{
 eventType: 'session.close',
 payload: { reason: 'bot_detection' }
 }]
 }
});

This returns a 202 Accepted, but the frontend SDK doesn’t seem to react. No onSessionState change fires to ended. The guestSessionId is still valid for subsequent messages. Is there a specific API call or SDK method I’m missing to force-close the session on the guest side from the backend? Or is this just not supported in the current orchestration model?