All handles of a class will be released.
For hClass=CAA.gc_hINVALID all handles of all classes are released.
If there are handles that could not be released, the class will not be deleted and the error message RSM.UNREGISTER_ERROR will be returned. Thus, the particular close function has not called ⇘ RSM.Unregister.