Try giving him some dog chews such as pigs ears when you close the door.
If you do this each time then he will associate the door being closed as a good thing if there is a treat in store for him.
You could also try a night light when you go to bed or a radio left on quietly.
