Close temporary files between writing and reading.