having recently played with servo on a stumpy  and then a kaen empirically  changes a lot depending on the platform you are using why not just cold reset the device instead of doing the power button press then we know that the device is going to be off 