How can I prevent myself from powering down my phone while "Alarmy (Sleep If U Can)" is trying to wake me up? How can I make the phone impossible to turn off. I use an alarm clock which make a task I must complete before the ringing alarm turns off. 

My problem is that I can simply turn off the phone and then I don't need to complete any task for the alarm to go away. So my question is that can I in some way make the phone impossible to turn off when the alarm is ringing? So then I would be forced to make the tasks(math problems, barcode scanner...) before I can turn off the phone.

Any idea is highly appreciated and If you know some app that will do this or if I can do this by rooting my phone so let me know. No solution is to hard for me, I will try anything suggested.
I saw that they updated Alarmy (Sleep If U Can) to ver.7.3 on the 3rd of january with a new option called Preventing phone switch off. I wounder where they read about this idea;)