Default [Q] Alarm ring non-stop

My Desire alarm rang, and at certain times the app simple crash or I would have press a wrong button, resulting in me arriving on the "home" menu, while the alarm is still ringing and there is no way to switch off the ringing, and i had to remove the battery.

Just wondering if this happen again, what can i do? other than removing the battery.
Mobile history:
Nokia 2100,Samsung C5212, N73,N80, N85, N81, N95, N96,N97,N87, HTC Touch pro, Nokia 6500, Nokia 6800, HTC touch Diamond 2, LG Secret, Samsung Jet, Samsung Galaxy S, Motorola Milestone xt720, HTC Desire, HTC Desire HD, Apple iPhone 4, Samsung Galaxy S II, Samsung Galaxy Note, Samsung Galaxy S 3.