Added an error msg when trying to edit a LDAP db.
Added LdapConnection->close().