Use atomic Swap instead of Load+close+Store to eliminate the race window where concurrent Stop() calls could both pass the check.
Use atomic Swap instead of Load+close+Store to eliminate the race window where concurrent Stop() calls could both pass the check.