Send the MQTT message after starting the behaviour

This seems to avoid behaviours to be stuck
Stop the behaviour started in blocking mode