[PATCH 1/2] Add error reporting to threadMgr