suspend mqtt operations until mosquitto loop is started.
add some test.