To turn off, type Up Up Down Down Left Right Left Right B A.
Weird, after I did that the error persisted and I had to kill my iphone 30(!) times before it finally submitted to the force shutdown