Add retry for message broker connection

To avoid some network problems, add retry when connecting to message broker.

Signed-off-by: kfei <kfei@kfei.net>