cmt: use github.com/atlas-org/shell + cleanup newMgr args
cmt: add cleanup function