do not emit COMMIT/ROLLBACK twice
do not commit/rollback from "closed" state
fix sqlite3 test issue
Merge pull request #10 from kamholz/master

do not emit COMMIT/ROLLBACK twice; do not commit/rollback from "closed" state