DiskChunkCache: properly flush files and remove to not loose cache.