fixed termination of MQTT block