Most protocols will be able to share a single unbind_all_listeners() primitive. Provide it in protocols.c.