Means for detecting or reacting to mechanical or electrical defects