Close fd before attempting connect to zookeeper
Close the socket opened towards zookeeper
Merge pull request #388 from Juniper/ds_socket_close

Close fd before attempting connect to zookeeper