pub fn is_connection_error(e: &Error) -> bool
Check if the error is a connection error, in which case the error can be ignored.