reconnect websocket on error