I have 2 cats, and I keep their litter box in the bathroom, so closing the door all the way carries the risk that they will piss on something while I'm in there. That said, I close the door most of the way, but leave it just enough room so they can push it open if they need to get in.