timeout while submitting data into ldapaccount

HI ALL

Issue concerns to v8.1.4

We run custom script to update LDAPAccount userPassword attribute by calling the following sample code:

dbEntity.PutValue("UserPassword",Password)

Try
    Session.Variables.Put("HIGHPRIORITY", True)
    Session.Variables.Put("CCC_PASSWORD_RESET", True)
    Session.Variables.Put("RESETID", UID_CCCPwdReset)
    
    Using u = Session.StartUnitOfWork
        u.Put(dbEntity)
        u.Commit()
    End Using
    
    Session.Variables.Remove("HIGHPRIORITY")
    Session.Variables.Remove("CCC_PASSWORD_RESET")
    Session.Variables.Remove("RESETID")
Catch Ex As Exception
    RaiseMessage(MsgSeverity.Serious, "Submit RACF password into LDAPAccount failed. Error message: " & Ex.ToString())
    Return Ex.Message
End Try

Return ""

but frequently the process step calling the script ends with error "One or more errors occured." 

Please note that the script is not ending in Catch statement though.

Can you please advise how to proceed so the error does not occur any more?