protected void connectionFailed(Channel failedChannel,IOException cause){
  failureCause=IOExceptionSupport.create(cause);
  channel=failedChannel;
  connected.set(false);
  connectLatch.countDown();
}

protected void connectionFailed ( Channel failedChannel , IOException cause ) { failureCause = IOExceptionSupport . create ( cause ) ; channel = failedChannel ; connected . set ( false ) ; connectLatch . countDown ( ) ; }
called when the transport connection failed and an error should be returned .
