Hi Stephen, Many thanks for diving deeper into the issue and sharing the insights.
I agree. given that the primary tears down all the devices on exit, the secondary is left with dangling pointers and inconsistent state. Without a mechanism to notify or synchronize that teardown, I think it is the only option for the secondary to exit immediately, without attempting any cleanups, once it detects the primary has exited. Best regards, Khadem