fix cacheManager close issue