restarting websockets on failure