Leakage or rupture protection or detection