Description
The situation described in RATIS-459 is still possible if a server is not restarted. A simple solution is to close the sliding window if there is a NotLeaderException. indeed, we should close all client connections when a leader steps down.