Update invMgr to better handle being terminated