Clean up the primary diag request handler.