adb reboot -p usually reboots instead of power-down which it is supposed to
Many phones start booting when a power cable is attached. This could be the reason here for the phone rebooting instantly instead of staying off.