added exception throwing to messagePublisherWorker