Closable Mysql transactions iterator