How to hit the reset button on your tongue

I had to hit the reset button on my tongue when my words hurt someone I cared about, which of course was not my intent.
Have you ever done that?
Let your tongue loose with no filter, yes it can get ugly.
So what can be done to hit the reset button on your tongue?