#              if self.remoteip:
 #                      param['remoteip'] = self.remoteip
 
-               c.request('POST', '/recaptcha/api/siteverify', urllib.urlencode(param), {
-                       'Content-type': 'application/x-www-form-urlencoded',
-               })
-               c.sock.settimeout(10)
+               try:
+                       c.request('POST', '/recaptcha/api/siteverify', urllib.urlencode(param), {
+                               'Content-type': 'application/x-www-form-urlencoded',
+                       })
+                       c.sock.settimeout(10)
+               except Exception, e:
+                       # Error to connect at TCP level
+                       log.error('Failed to connect to google recaptcha API: %s' % e)
+                       raise ValidationError('Failed in API call to google recaptcha')
+
                try:
                        r = c.getresponse()
                except: