replaced wrapping health check with isDead check that terminates