potential bug fix for #14 where the isCompleted process can incorrectly cause a further exception.