Add support for manually handling errors raised during processing.