Thats why we dont go for onlead walks around resident area's anymore . It happened one too many times for my liking.

I usually just yell at the dog and hope that it goes away.