Close the file and nil the file handle reference