Keeps you safe

You wanted to be safe, and wanted me to warn you, but when I did it once too often, you just ripped my heart out. Now I remain lifeless, and if you are not careful, you may become lifeless too. What am I?