use currentJoinThread to see if we should stop or not and use it to stop when a cluster state comes from a new master