Power-off control of energy storage charging pile