add ref to Mosquitto
catch ENOMEM