"It was lovely having you over, but I'm afraid it's getting late and I have some things I need to take care of. Thank you for visiting." or "I had a great time with you, but I think it's time for you to head home now. Thank you for coming b