tls: WSAGetLastError should be used on Windows to check system socket error.