Ensure a transaction is closed if the yielded function raises an exception.
(Don't leave the connection in a broken state.)
Whitespace cleanup
Same fix as 0b05deeeb59d1d710e99b1f903caa77dcb3276df by Bill Kirtley, but this time for the cursor_eachrow method
Merge pull request #2 from minaguib/master

Exception Fixes