Do not invoke websocket.close if the websocket is closed by the container