If the barking or whining is persistent, quietly make your way down to the closed door and give a firm command of quiet through the door. Do not open the door until your dog has calmed down and is being quiet. When this occurs, open the door and give them lots of praise and cuddles.