modules/websocket: Updated connection reuse and closing flags for WebSocket handshake.