add cleanup on exit in images/nodeapp-etcd/appreg.sh