closes websocket connections on TCP error