WIP: Add leaving support for leader