Fix segfault on exit with unintialized TCP socket.