Emit an event after the hostname has been changed