Using the "door jam fix" hack from MATY will probably fix you right up. It will prevent the occurrence and also properly shut the doors which are presently stuck in the open position (can't recall whether they will just shut on their own or if a Sim has to go through them to trigger the shutting -- either way, though, it has solved the problem in my game and prevented it from recurring).
Click on the link applicable to your latest EP in the 'Official Lists' in the first message here:
http://www.moreawesomethanyou.com/smf/index.php/topic,7.0.htmland scroll down to find doorjamfix.zip