code: function cleanup()
      {
        if(chan.timer) clearTimeout(chan.timer);
        chan.timer = setTimeout(function(){
          chan.state = "gone"; // in case an app has a reference
          x.channels[chan.id] = {state:"gone"}; // remove our reference for gc
        }, chan.timeout);
      }
docs: track all active channels to route incoming packets called to do eventual cleanup