Use the WebSocket's connection stream_close method to close connection