The sun will destroy the earth long before it stops providing energy.