Added check for java.net.ConnectException on testHTTPConnection