Good suggestions regarding a distraction and low key behavior.
You can also ask for an alternate behavior, such as sit or down, as the guests are leaving.
I've been working with Snap on a similar thing and am finally making headway. My office at work is gated. From time to time, as a visitor was leaving my office, he would charge and throw himself at the gate. I was never been sure whether this was a herding thing or barrier frustration.
I now ask for another behavior from him before visitors get to the gate and am rewarding his successful behavior "big time" . In his case, the behavior is to go to his bed. He may not do it automatically yet, but he will look at me now and wait for an instruction.