Remove accidental duplicate file.close