Close QueryIterator instance.
Add import.
Merge pull request #88 from ionflamme/master

Fix to connection leakage