Close file after use.