if you attempt to launch firefox using selenium with a proxy that refuses connections there is no error returned so I cant catch it. A work around is to check the value of the id="errorTitleText" however I really wish there was a way to catch it. I am using the latest version of firefox, selenium and python.