raise errors for failed tasks