Handling leader failure.