that's not shame, that is positive reinforcement via negative example.
shame is something put upon you, and not a decision you make on your own.
breaking the cycle you were in is no small feat; please do not misunderstand. what you did was difficult. I would not say that you were shamed into doing it, by what you've said.