@nprofile1q... I guess the main issue is there's no standard way to arrange a dedicated process group for the two processes, otherwise you could make each of them send a signal to the entire group, like this?
sh -c 'exec setpgid sh -c "(sleep 1; kill -- -$$) & (sleep 2; kill -- -$$)"'