Implemented the blacklist code from ebs-cleanup which is more fault tolerant.