Fixed erasures not getting completed due to failure to continue calling mqtt.loop