Am wondering if the @rickkas7 solution is the way to go for you @Elco:
I was complaining specifically about TCPCLIENT, but the general technique could be useful to your situation too.