At various points the refresh function errored out because there was an invalid phone number or email. An invalid format for phone or email will immediately cause an error, but an invalid email will still be sent.
Also, at various points the emails refused to send because of an SMTPrefusal. This is probably from my gmail account refusing to send so many emails at once, especially since some of them were erroneous emails.