RingSockets: fix memory leaks, avoid calling WSAStartup too many times, avoid closing invalid socket if socket function fails
RingSockets: fix memory leaks, avoid calling WSAStartup too many times, avoid closing invalid socket if socket function fails

ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring