I guess if you have the 10 seconds to do so, you could invoke the operating system hard reboot function, which at least on Android is pressing and holding power and volume up for 10 seconds. I don't know what it is on the iPhone.
Edit: Too bad there's not some sort of haptic to let you know that it accepted the command before it shuts down though.