How to catch websocket closed due to code changes - Cloudflare Developers