We closed the door when Dd1 was little but by the time she was out of the cot she wouldn't let us any more so we put a baby gate on the door to reduce the amount of times she was coming to visit us in the lounge room! It meant her room wasn't too dark and she could still call out for us but encouraged her to stay in bed. We left it open over night so she could come to our room if she needed us.