reject transaction promise if commit fails (fixes #50)

pull request to make sure transactions are rejected if there's an error during commit (fixes #50)