I suspect that this is impossible using the SDK. At least, I hope it is.
Possibly a silly question, but why would you want to prevent your users from switching off their own phones while running your app? I don't think I'd be happy using an app that did something like that. And I suspect that it wouldn't pass Apple's vetting procedures, either.