runtime: New API for internal unregister methods.