Prevention is the key here: Confine him to a crate or another room, and provide a dog bed or blanket that fills his need for a comfy night's sleep. If your dog misses your companionship, give him a few extra-special good night toys to distract him from loneliness.