protected void error(final String message, final Throwable t) {
        errorReceiver.log(Severity.ERROR, null, getElementId(), message, t);
    }
Called by the pipeline when processing of a file is complete.

@see stroom.pipeline.filter.AbstractXMLFilter#endProcessing()
stroom-pipeline/src/main/java/stroom/pipeline/writer/AbstractWriter.java