Guineas will get themselves all worked up and any sense they have flies right out the window. The best approach is to just stand there and let them begin to calm. If they truly want back in once they're calm, walk them to the gate. Once one goes in, the rest will follow. Well, maybe not the low bird. They get bullied to the point of trying to avoid the confines of the coop.
Where chickens will follow you around Guineas need a bit of herding from behind. Some use long sticks to make their arms look longer, I never had much luck with that. Just spreading my arms, most of the time, got them moving where I wanted them.
And don't chase. That just winds them up tighter. Calm, steady, patience. As much as you might want to howl at the moon, been there more than once, that is what will bring success.