s4:finddcs_cldap: close the socket when it's not used anymore