etcdmain: actually return errors