ent_remove terminates other functions that are on wait() and have the same me pointer. It does not terminate the current function.

You could test when the pointer becomes invalid by displaying its index, but unfortunately that would only work with lite-C, not with WDL scripts.