Properly close socket on WIN32 to allow accepting further connections