     log.moat 1
     res.status 500
     res.send {error: "Something went wrong on our end. Sorry!"}
+    app.emit "response", res
     measure req, res
 
 type.defineMethods

  drain: (fn) ->
    @_layer.drain fn
    return this

  ready: (callback) ->
    if @_server.listening

      return onFinish res

  .then ->

    # Prevent DoS attacks using large POST bodies.
    req.destroy() if req.reading

    if res.statusCode isnt 408
      app.emit "response", res
      measure req, res

  # Uncaught errors end up here.
  .fail (error) ->
