Rebind ports on rehash, and tell modules about it, too