res.onAborted(() => {
      if (res.stream) {
        res.stream.destroy();
      }
      res.aborted = true;