When taskmgr is shutting down, the creating the task would attach to the taskmgr, but don't detach on error condition.