You can use safety relay, most hobby machines do not go to that length and use a simple control relay which has the all the e-stop condition switches in series, and the relay drops out the power to contactor coils and advises the controller that an e-stop has taken place.
Al.