Power taken directly from the mains can be problematic for sensitive devices.
Having an uninterruptible power supply (UPS) can secure the mains power to all of the above mentioned equipment types and resolve the examples described. To find out how a UPS can help, see the below link.