auto re-connect raises error when there was transaction in progress