Fixed a bug that made the publisher continue regardless of errors.