Fix exitFlag race conditions in DefaultDistributor