Catch all errors during mail sending (most notably socket.error)