Updated to use MQTT wills and separate network component