fixed a typo in websocket onclose