When I deployed a lot and my young wife was at home with the dog and the baby the Shotgun was in the walk in closet.
The plan was to call the cops and let the bad guy have fun with the Doberman while she got in to the closet.
There were 5 doors between the front door and the closet and a Doberman with a bad attitude toward strangers.
The Shotgun went under the door knob and the wife and baby were behind the safe. I told her if that door knob turns pull the trigger.
Certainly moving about at night I would prefer a pistol, but as the tool of last resort a shotgun has it's place.