- if (not simgrid::kernel::context::StopRequest::try_n_catch([host]() { MSG_host_off(host); }))
- jxbt_throw_by_name(env, "org/simgrid/msg/ProcessKilledError", "Process killed");
+ if (not simgrid::ForcefulKillException::try_n_catch([host]() { MSG_host_off(host); }))
+ jxbt_throw_by_name(env, "org/simgrid/msg/ProcessKilledError", "Host turned off");