Clean up UIObject/Object references.