diff --git a/runtime/lib/vmservice.cc b/runtime/lib/vmservice.cc index 76d5fc9aad374..c6828683f4ef7 100644 --- a/runtime/lib/vmservice.cc +++ b/runtime/lib/vmservice.cc @@ -140,6 +140,7 @@ DEFINE_NATIVE_ENTRY(VMService_OnExit, 0) { OS::PrintErr("vm-service: live ports = %" Pd "\n", message_handler->live_ports()); } + Isolate::KillIfExists(isolate, Isolate::kInternalKillMsg); return Object::null(); }