Safety Switches on an Enclosure

Hi, I have a couple of Avid CNC routers in my Industrial Arts classroom. I have a custom built enclosure around the machine to stop students from putting there hands where they do not belong. I am wanting to put switches on the door so that it will stop the machine if someone opens it during use. I was going to just wire them in as E-Stop switches, but I realized that I could not jog the machine with the doors open this way. I would also be asked to re-home before running any G-Code if the doors have been opened after it was homed. Any suggestions? Is there a “Soft Stop” that would stop a program, but not stop jogging if a door is opened?