Fix cursor not closed in getFile.
Add changes to actual src.
Merge pull request #4 from jrouault/fix/cursorClose

[Fix] Cursor not closed