Handle state when broker doesn't respond

The response from a `client.send()` can be  null, i.e. when the broker doesn't respond it time.