No, 'net-close' should not change the contents of a symbol, only close the socket with that number. The variable holding the socket number is just a variable, not the socket, it should not be changed by the close operation.
To check if a number is a valid socket number use (net-sessions) to return a list of open sockets.