Added protection against races with too few spawns.