title: What events should I handle in express response (stream) object to handle when the response finishes?
body: <p>I'm trying to automatically log when a request finishes.</p>
  <p>I have something like this:</p>
  <pre><code>function (req, res, next) {
      var startTime = clock.now();
      res.on('end'. function() {
          logger.trace(&quot;END ...&quot;, req.path, res.statusCode, clock.now() - startTime, ...);
      });
      res.on('error'. function() {
          logger.trace(&quot;END ...&quot;, req.path, clock.now() - startTime, ...);
      });
      nest();
  }
  </code></pre>
  <ul>
  <li>Does doing that cover all the cases? (e.g. when a request get's interrupted)</li>
  <li>Will I be called at most once for every request?</li>
  </ul>
  <p>If any of the answers is no, please include how to do it.</p>