Roger,

Moral is that you just proved why limit switches should be NC contacts, so when the cable falls out it breaks the circuit (effectively hitting the 'limit') and you don't find out until after the event!