Close LDAP connections on shutdown.