changed from auto on connection release to after transaction.