What do u do when u r about to loose it?

So my 4 year old is a sweet heart, but sometimes he will just ignore me. I tell him something and he pretends that he is not listening and then he makes up excuses trying to justify his bad behavior.

I try to stay calm and tell him that he shouldn't lie and that it is rude to ignore people, but sometimes my blood just starts to boil and I want to yell at him. I don't want to resort to that tho.

So what r something's u guys do to control ur temper?