Close cursor before finalizing
Merge pull request #53 from ubuntudroid/fix_cursor_warning

Close cursor before finalizing