I have found that running the snapshot.c sample code against a VMware Server 2 host produces the following error on the host when the program is closed:
SOCKET 3 (1848) recv error 10054: An existing connection was forcibly closed by the remote host
Any known workarounds?