Simple pipeline error handler that logs the error message.
Handles an exception thrown during any stage of the pipeline.