Safety arrangements for preventing or indicating malfunction of the device, e.g. by leakage current, by lightning