Why wouldn't people just say, "It's getting late, this was fun, but I need to sleep so it's time for everyone else to leave, let's hang out again next week"?
I have had hosts be this direct, and we all went, "okay," and left. And came back when invited with no hard feelings. Usually D&D games, but also movie nights.
Even during my own parties or while I have people over. Stay as long as you like, even stay the night if you so desire, but I'm going to my room and passing out at 10pm no matter what, so you do you from that point on. It's likely I'll also forget to tell you I'm going to bed