Hello Zhu,
Unfortunately the main stop button does not have this capability.
You can make a custom button that calls a function (for instance, as shown here) and have your function send a soft code to the state machine to move to the exit state (e.g. this).
Please let me know if this works for you.
Thanks,
Josh