#3 - alternative method of determining whether or not the remote end has
closed the socket