+ /* We can't use the sg_actor_on_exit, as the return type of the callback changed: the int in MSG is ignored and was
+ * removed in sg */
+ simgrid::s4u::this_actor::on_exit([fun, data](bool failed) { fun(failed ? 1 /*FAILURE*/ : 0 /*SUCCESS*/, data); });