The app could shutdown the phone by running the adb command "reboot -p". Could be better than the current method for advanced users.