That is neat! I wasn't aware og such thing. I think by default the watchdog covers what I'd like to implement.
My solution tho, wants to be something that works if any if kstars/indi goes down and as you said, I'd like to have some smart introspection to be able to restart the session from where it left. I think having a dedicated program instead of a bunch of scripts may help with a couple of things