fixed websocket client.close()