E-Stop Wiring and Placement?

Is it better to cut all power to the machine, like you did here or to do something like THIS? Can one way damage you electronics?