3b5f36d239
Close retired websocket connections in stopWSClient so clients reconnect promptly instead of remaining in a stdin-only state with no returning output. Add regression coverage to verify stopWSClient actively disconnects the websocket. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>