Added feature to send failed emails to USG in backgroud