Always close file in repair