res_ari_events: Fix shutdown ref leak.