Capture errors in processing