avoid issues with crash from 'clone' package

...and clean-up tcpClient on error!