If there already is a leader and a new leader is set, the old leader becomes a normal member. It currently does not handle an existing member becoming leader though