public void ChannelInactive(IChannelHandlerContext ctx)
 {
     listener.ConnectionLost();
 }