Use closesocket macro consistently, not close directly, for easier