Added back in a line that stores the TCP socket after establishing a connection; deleting it was a mistake.

Also, ramped down the logging level in unit tests, as had accidentally checked in a more verbose setting.