- use InterlockedExchange for setting shutdown flag