bugfix: omlibdbi did not properly close connection on some errors

This happened to errors occuring in Begin/End Transaction entry
points.