The transaction class should rollback on destruction.

Fixes: #11

Signed-off-by: Vinzenz Feenstra <vinzenz.feenstra@gmail.com>