I will keep this short since it doesn't need any further explaination.
The game overwrites the power.dat when shutting down before loading the original power.dat resulting in an empty file for next server start making all wires and items form elec. blocks disappear.
You can fix this by simply adding a global flag when the power.dat was loaded/created and not letting the game writing it when it's not set.
https://steamcommunity.com/app/251570/discussions/1/3191364450207680233/ (This is from 2018)