Emergency shutdown using tripwires