move unique key deletion above yield to allow manual retry from within perform method