shutup VC warning
renamed parameter to silence compilers
fixed socket shutdown on Windows