you can just check brokers and/or leaders for nil, since they are only set to nil when the client is closed