using publish_failed for stderr rather than custom events