Fixed WebSockets close handshake

Fixed the WebSockets close handshake