An impact activated switch which on activation cuts the power to the solenoid arming the door switch.Something like raising the guarded switch.Only that it is impact activated.AND then maybe pilot+evac command switch activated too.Simple as that...
The trickiest of soloutions lie in the simplest of forms....