call callbacks when closing the cache project