@Override
    public void close() throws IOException {
        IOException ex = null;
        for (PipesReporter pipesReporter : pipesReporters) {
            try {
                pipesReporter.close();
            } catch (IOException e) {
                ex = e;
            }
        }
        if (ex != null) {
            throw ex;
        }
    }
Tries to close all resources.  Throws the last encountered IOException
if any are thrown by the component reporters.

@throws IOException
tika-core/src/main/java/org/apache/tika/pipes/CompositePipesReporter.java