void prepareForClose() {
    try {
      finishKrf();
    } catch (CancelException e) {
      // workaround for 50465
      if (logger.isDebugEnabled()) {
        logger.debug("Got a cancel exception while creating a krf during shutown", e);
      }
    }
  }
Method to be used only for testing

@param ch Object to replace the channel in the Oplog.crf
@return original channel object
geode-core/src/main/java/org/apache/geode/internal/cache/Oplog.java