code: public void close() throws IOException {
      for (Mapper map : mappers) {
        map.close();
      }
      if (reducer != null) {
        reducer.close();
      }
    }
docs: Closes all the chain elements.
  
  @throws IOException thrown if any of the chain elements threw an
  IOException exception.