Skip bad hosts when the tasks are executed in parallel

Targets issue #1123