finish the request handler