Depends on the state. Some say you have a duty to retreat, others are "stand your ground." Personally, I don't think the door makes a difference in this situation because if he's in fear of bodily harm, trying to turn around and go out door would only put him in a more vulnerable position...