handle cleanup of objects in cache when they are destroyed