add try/catch to MQTT connect