Failure of UPS (Uninterruptible power supply) and prevent from failure