final VmPipeAddress address = new VmPipeAddress(_port);
_logger.info("Attempting connection to " + address);
_networkDriver = new MINANetworkDriver(ioConnector, protocolHandler);
protocolHandler.setNetworkDriver(_networkDriver);
ConnectFuture future = ioConnector.connect(address, _networkDriver);
// wait for connection to complete
future.join();
// we call getSession which throws an IOException if there has been an error connecting
future.getSession();
_networkDriver.setProtocolEngine(protocolHandler);