nit: here and OnRuntimeRemoved, maybe DCHECK(runtime);