[library] Cancel all requests from container when it gets detached
[library] Account for null ItemManager case in ItemManaged