fix: use onceexit (instead of once) which runs after all children are processed
#41
+1
−1