Improved code for detecting connection errors
Add sample emails including connection error
Add error message pattern