getBrokerStatus: catch an exception if any while connecting to amqp