Added automatic rollback in commit() and made all uses of this consistent. Thanks.