examples/ip_pipeline: fix leak on connection error