When the connection is still open, do not execute the PRINT #4 <TCPCONNECT xxx> again.
You may want to follow the examples in the testEthernet.PC6 program where we demo how to make a connection to the TLServer (using <CONNECT> instead of <TCPCONNECT> and require authenticated login, but the idea is the same) and check if the connection is opened. If it is open then send only command without trying to remake another connection. Only if the connection is lost then close the connection using the PRINT #4 "</>", wait for a while then re-connect again.