static void setClosureError(final KVStoreClosure closure) {
        if (closure != null) {
            // closure is null on follower node
            closure.setError(Errors.STORAGE_ERROR);
        }
    }
Sets critical error and halt the state machine.

If current node is a leader, first reply to client
failure response.

@param closures callback list
@param message  error message
@param error    critical error
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/storage/BaseRawKVStore.java