added logging for WebException