Correct return value from task wait.