Ensure task states are reachable before learning
More fine-graded error reporting
In verbose mode, more information on non-standard line-search exit status