win32: close control socket when exiting