anchor.diff:      case gen_tcp:send(Socket, Response) of
           ok -> ok;
           {error, closed} ->
  -            Mod:handle_event(client_closed, [before_response], Args),
  +            handle_event(Mod, client_closed, [before_response], Args),
               ok
       end.
   
  
positive.code: 
              t(request_end),
  
              Mod:handle_event(request_complete,
                               [Req, ResponseCode, ResponseHeaders, <<>>, get_timings()],
                               Args),
  
              {close_or_keepalive(Req, UserHeaders), B2}
      end.
  
negative.code:                         {ok, _BytesSent} ->
                              ok;
                          {error, closed} ->
                              handle_event(Mod, client_closed, [before_response], Args)
                      end;
                  {error, closed} ->
                      handle_event(Mod, client_closed, [before_response], Args)
              after
                  file:close(Fd)
              end;
          {error, FileError} ->
              handle_event(Mod, file_error, [FileError], Args)
      end, ok.
  
  send_bad_request(Socket) ->
  