Delete the websocket from the websocketData list.  Onclose is not triggered when .close is called.