add auto commit check after transaction