Upgrade Netty 4.0.12 and javassist 3.18.1
Port changes for #411 from 1.7 to master.
Introduce a constant exception for Remotely Closed
append to previous commit