finish a request, invoke res.end()