Various improvements in netty usage