Changes to do_task_eval for stopping early in jointopt