Verify that LineReader closes the underlying data source when the iterator is exhausted.