Close cursors in library code
Close more cursors
Merge pull request #45 from cloudant/close_cursors

Close cursors