Change `is_jvm_deat_yet` to a pure predicate and use `wait_until` for the repeating.