Fixed unclosed transactions + pool (see #32)