Ikruglov/reconnect during transaction

proposed fix for bug #85