Add logic around rejecting AppendEntry RPCs