At a certain point when the conversation starts winding down, I say “It was great to see you.” Then I move my body away. They’ll usually pick up on my lead and it naturally ends and we part. Sometimes they don’t though. Like with my landscaper. Sometimes I start closing the door while he’s still talking! It’s so awkward. But that’s not the norm.