private void closeConnection(ChannelHandlerContext ctx, String msg) {
        PooledConnection conn = PooledConnection.getFromChannel(ctx.channel());
        if (conn != null) {
            if (LOG.isDebugEnabled()) {
                msg = msg + " Closing the PooledConnection and releasing. conn={}";
                LOG.debug(msg, conn);
            }
            flagCloseAndReleaseConnection(conn);
        } else {
            // If somehow we don't have a PooledConnection instance attached to this channel, then
            // close the channel directly.
            LOG.warn("{} But no PooledConnection attribute. So just closing Channel.", msg);
            ctx.close();
        }
    }
User: michaels@netflix.com
Date: 6/23/16
Time: 1:57 PM
zuul-core/src/main/java/com/netflix/zuul/netty/connectionpool/ConnectionPoolHandler.java