Make single() methods close iterators that are also resources
Merge pull request #2394 from chrisvest/2.1-close-resource-iters

Make single() methods close iterators that are also resources