Improved exception handling

Do not assume WebException contains a response.