Fix small error.
Some work on the TCP reconnect stuff. Don't know how to test it.