Implement reconnection in etcd