Fix ClosingIterator's cleanup exception test

The test wasn't testing what it should have. Cleanup tasks
are run when next() is called on the last element available.