Yesterday I've forgotten my phone in office and today when I came back I found my phone is off.
There was an alarm enabled, so phone was ringing so long that battery has discharged.

Is it possible to write a patch for alarm disabling after 1 minute of ringing?