Close cache file if we cannot duplicate it