Handle connection loss to mqtt server