safely closed cursor in consumeToCollection
Merge pull request #4 from mandybess/master

safely closed cursor in consumeToCollection