Publish-Subscribe working with errors