class Socks5AcceptorHandler extends IoHandlerAdapter {

    public void exceptionCaught(IoSession session, Throwable cause) throws Exception {
        log.error("Exception caused in SOCKS5 proxy, probably a bug in Vysper", cause);
        Socks5Pair pair = getPair(session);
        
        if(pair != null) {
            pair.close();
        } else {
            session.close(false);
        }
    }

    public  Socks5AcceptorHandler(Socks5ConnectionsRegistry connections);

}