When reading table, close file before moving on.