gi: guard callback from GC