add error handling for etcd server calls