docs: function onClose() {
      DEBUG("closing")
  
      session._agents.forEach(function (agent) {
        agent.destroy()
      })
  
      session._agents  = null
      session._channel = null
      session.emit("close")
  
      // only 'works' if the cb has not already been called
      cb(new Error("closed"))
    }