I agree with what was mentioned about sending your pup to a designated spot. Kuma our rescue, I taught him 'go to bed'. The go to bed is only used when we want him to basically leave us alone. (He is very needy and wants to be petted all the damn time.) Or when we are eating.
His gotten so good that when he sees we are setting up dinner and setting down to eat, he will automatically go to his bed and sleep. Then, when he hears noise and see's me give him really yummy treats, he knows he can get up and sniff around where we eat.
I used to teach him Go to Matt, but since he doesn't zoom out the moment the door is open, we hardly every use it. (Now he will go to the open door peer outside and come back in.) However if he see's someone walking out by the road, he will run and bark at them. (He's recall is really good here.)
So, just teach him go to bed or maybe even go to kennel.