Ensure cursors are closed
Merge pull request #5 from salsify/master

Ensure cursors are closed