core: use process.alive? to avoid exceptions