CLI: TCPF: Error handling
CLI: TCPF: Fix resource leaks