fix chandup() missing return
msvcrt.dll close() works on sockets