Better publish error handling.