exit code as # of failed tasks