Removed the LDAP add and remove exceptions because this can happen when the script is run twice and the database transaction is rollbacked. Critical warning is still shown.