Added close on failed connect

udpipe_client.cpp:
- From the documentation, close is necessary even if the connect fails,
so added a close to make sure we're ok.