Reconnecting of MQTT connections now working.