Why not automatically power down if any unknown USB device is attached?
Or shut down when any USB device is attached while the phone is locked/inactive?
It'd work like this: Unlock phone, plug in USB widget; it works.
Or: Plug in USB widget without first unlocking phone; phone shuts down.
So like you connect it to your computer for the first time and it shuts off?