FED-85: Fixed message cleanup to be scheduled and canceled when a node takes leadership and loses it, respectively.