FailureHandler failureHandler = new FailureHandler() {
@Override
public void onWaveletFailed(OperationException failure) {
logger.error().log("CcBasedWavelet failed permanently", failure);
disconnectedHandler.onWaveDisconnected(
new CorruptionDetail(failure.isSchemaViolation()
? ResponseCode.SCHEMA_VIOLATION : ResponseCode.INVALID_OPERATION,
"CcBasedWavelet failed",
failure));
pipe.close();
}