}
}
public synchronized void doFail() {
if (transportConnector != null) {
TransportConnector temp = transportConnector;
transportConnector = null;
try {
temp.stop();
}
catch (Exception e) {
log.info("Caught while closing due to failure: " + e, e);
}
}