Emergency devices preventing damage to a machine or apparatus