Add support for failed tasks.
Merge branch 'master' into java-task-lib
Split API strategies.