minor file closing