catch connection resets in email jobs