use updated go-mqtt api
use log package and defined errors