you can simply add a attempts argument to joinCluster function and get rid of startAsFollower.