It can cause a lot of damage. As a generator runs out of fuel, the engine is likely to surge. An Uninterruptible Power Supply (UPS) can be used to prevent this from affecting your electronic equipment.