add error handling program for all subtasks
Merge pull request #165 from irvs/issue148

add error handling program for all subtasks