etcdserver: cleanup main loop