Leaves as heat.
energy can neither be created or destroyed, therefore energy is never lost in an ecosystem, simply converted into a different form.
nothing
Each time the energy is transferred, 90% of it stays with the source.