Fix a potential resource leak
Fix a potential resource leak

If we hadn't already closed the socket used for DNS by the time we
freed the context, then we would have leaked that socket.

pubnub/c-core,pubnub/c-core,pubnub/c-core,pubnub/c-core