In most jet aircraft the bleed valves are designed to go to the open position with the loss of electrical power.
Some are, some are not. HP bleed valves typically are not.
Most are however spring-loaded closed and need pneumatic pressure to open.
So why some would close them before shutdown is a good question, as they would close anyway as the compressor pressure bleeds off.