update MQTT connection error handling
add reconnect funcs