Exit with code 1 when got errored tasks

Only after all tasks are done. Closes #88
Merge pull request #89 from floatdrop/master

Exit with code 1 when got errored tasks