Moves try/except for ProcessingExceptions to a function decorator.