handle ldap errors while running
support for backup restore added