When you are done using any TRPCBroker component, you should call its destroy method to free it from memory.
To destroy TRPCBroker components from your Visual Basic program:
Call RpcbPropSet(intRpcbHandle, "Connected", "0")
RpcbFree(intRpcbHandle)
Visual Basic takes care of the details of unloading the DLL.