I'm not here much in piecing, still over in Newcomers, but here's my two cents. In your specific example, I believe I would have asked him to join me in a separate room away from your daughter. And then explained that yes, a 4 year old DOES repeat what she hears, they are more aware than we realize.
How about if when the event occurs you let him be aware of what it is that makes you so angry, but if you can't stay in control of your anger emotion put the discussion about on hold for a few hours or a day until you can both be rational about the discussion.
The discussion can be very helpful, but it should end up being positive for both of you.
Live your life while you are still living. Riding the trail less traveled.