Fix the condition in the is_alive function of Proc class