corrected exception thrown from socket.create_connection

fixed cp35578, cp35388