Seeing this a bunch on jenkins - previous leader ephemeral node is still around for some reason.
OverseerTest failing in jenkins
Overseer threads are only being interrupted and not closed.
Occasional OverseerTest#testOverseerFailure fail due to missing election node.
When registering as the leader, if an existing ephemeral registration exists, wait a short time to see if it goes away.