I don't think that electricity is the main issue with the "disconnection", you can have problems with network connection at hardware level if you don't have something that prevent the power surge, or little spikes but it will be more "general" and cross all your equipment, not only the VM machine.
There is no easy way to help with Tor issues, just reboot the service and try to economize the use of that network connections.