handle multiple children exiting in perlipc example