Fixing (lack of) delete stability and related issues
issue #43: fixed segfault when flushing transactions (thanks, Joel
Jacobson)