Some more closed checks in IndexedTempFile