Fix bug where local server starting is broken

When connect raises an exception, e.errno is set.  When urlopen raises the same exception, e.errno is not set.  The original code had the version check after connect().  Setting back to the original ordering.