Improve publish logging.

Assign each publish message a UUID and include this in error handling.