adding close option, to close a websocket