Dedupe pubsubprocessor

The exception should be a second parameter of the debug() call, so that we can see the stacktrace in the logs.