Revised check for closed client in producer, consumer

This patch adds a check to make debugging easier when the client has been closed (for example, due to an errant defer()).  Checks are added to both Producer and Consumer as well as inside Client.
just `return client.brokers == nil` ?