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

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