i am starting to wonder if this is a collision while writing to the various files on exit.

it sounds like somewhere internal to wow, they are doing an fopen and getting back a null as one of the other wows already have the files open.

maybe try exiting your wows 1 at a time

(maybe something to look into for any blizzard types that might be cruising these forums )