If you are having guest over, make a safe room for your cat. Guest will go in and out, leaving an opening for your cat to bolt out. Having a safe room will ensure that your cat is safe and also more comfortable.
In the safe room, make sure to have a lot of places for your cat to hide, his favorite toys and his favorite bed—you want to make a comfort zone for him so anything that your cat likes, put in it the room for him.