Clear the last error following a successful Windows API call, since some socket providers may leave last error set even when the call succeeds.