if (this.channel.isConnected()) {
this.state.set(STATE_UNBINDING);
// try a "graceful" unbind by sending an "unbind" request
try {
sendRequestAndGetResponse(new Unbind(), timeoutInMillis);
} catch (Exception e) {
// not sure if an exception while attempting to unbind matters...
// we are going to just print out a warning
logger.warn("Did not cleanly receive an unbind response to our unbind request, safe to ignore: " + e.getMessage());
}