Added code to capture exceptions from Mechanize if we get a bad response from the url