Close file afterwards