Close file after reading