Fix ClearAndLogFailedMailsCommand