I feel like I am missing something obvious, but is there a _safe_ way to test if PW is still running?
I don't think so. ProcessWrapper primitives are not safe. If they are not called in the right order, of even, if one primitive fails and you call another primitive on the same object, it produces a segmentation fault.
If the process pointer for whatever reason is no longer valid (e.g. the image crashed / I closed image), then #isRunning results in crashing the image. Maybe this is a bug?
Centre de Recherche en Informatique, Signal et Automatique de Lille