Close response if request is not websocket