Added fail case of connecting to mqtt broker.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>