Used flags and pulling plug on child to abort