Log all exceptions when document processing fails