Hmm…
It seems what you might want to do in this case is modify your ec2 inventory script (if you are not using one, use one) such that it returns hosts that are running.
This way you would only talk to running hosts?
Alternatively if you are just talking about Jenkins, what you might want to do is wrap /usr/bin/ansible-playbook in a script that always returns success unless the string “all hosts have already failed” is found (or some other criteria).