I'd recommend a good UPS. They do filter electrical noise, etc. Their software monitors the electrical status in and the status of their backup battery. The attached picture shows the # of times that my UPS has kicked in . . . Those times would all have resulted in software and possible hardware issues. My first UPS died on me - during an electrical storm . . . I think this eventually led to hardware failure of my motherboard but . . . I couldn't really prove it . . .
Allan Thornton