closing cached file