Fix #32 Add leaving support for leader