@Override
	public void connect(InetSocketAddress isa, ChannelHandlerFactory factory) {
		try {
			SocketChannel socket = SocketChannel.open();
			dispatch(socket, factory);
			socket.connect(isa);
			if (!socket.finishConnect()) {
				throw new IOException();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}