IoHandlerAdapter方法中,程序抛出Exception 会调用exceptionCaught 但不会关闭session.close(); 如果程序因网络断开,会调用exceptionCaught方法后再调用session.close()方法