auto-reconnect when we get an error