External LDAP connection randomly closing