Mark tasks as failed when container initialization fails