telemetry: close socket on connection failure
telemetry: close socket on connection failure

The socket fd is now being closed when the connection fails.

Coverity issue: 358444
Fixes: b80fe1805eee ("telemetry: introduce backward compatibility")

Signed-off-by: Ciara Power <2dd8f648091a527a3f34edd30b226be01da76a0e@intel.com>
Acked-by: Kevin Laatz <961b59698dfa2327ef66e48c81ae3315f5733fd1@intel.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk