Merge pull request #19 from 30x/ISSUE-65205927 [ISSUE-65205927] Use transaction for writing, add row close