Handler lambda is throwing errors when the failedSet is not empty. The print statement is referencing a non existing key in the dictionary: awsAccountId