Do pumps have a failsafe?

What if you are sleeping, and the pump malfunctions and just keeps dosing you non-stop?

Has this ever happened to anyone? Is it possible?