 Distraction. It's what Bill Campbell, a dog trainer, decades ago said, jolly them up. So if you can distract them, and some won't be distracted, but if you can distract them at least for a time with play, whatever your dog or cat loves, or maybe doing something else. So for dogs, stuffing treats inside a Kong toy. Or for cats, maybe a food puzzle with really good treats.