I found this on YouTube.
This describes how a power button triggers an output that holds power on.
Since the button is available as an input after the robot is running, it can be used to trigger a shutdown.
Now the circuit isn’t exactly the same, but the principle is identical.