Improves error catching in processor and collector