Added try/except blocks to make the production more robust, changed config item "service" to "topic"
Renamed config item "service" to "topic"