Handling connection resets when contacting LDAP

This is to enable re-connection when connection resets happen on the existing LDAP connection