That is a very interesting question with an answer from a Statistical Mechanics (SM) point of view, Dear Prof. Rk Naresh
The answer we get from SM is that energy is conserved, no matter what we do.
In order to show that using a math rigorous formalism, we have to use the so called microcanonical ensemble. Then, we have to understand what means microstates & macrostates. Finally be ought to be able to elaborate the First Principle of Thermodynamics in terms of the quantum microscopic states, to find out where the energy of a closed system goes.
The classical reference is Prof. F. Reif book:
Reif, F. (1965). Fundamentals of Statistical and Thermal Physics. McGraw-Hill
Energy can neither be created nor destroyed i.e. the total energy of the universe remains constant; however, it transforms from one form to another. The same phenomena apply when we burn a candle; chemical energy of wax is converted to light energy and heat energy. The law of conservation of energy states that energy can neither be created nor destroyed - only converted from one form of energy to another. This means that a system always has the same amount of energy, unless it's added from the outside. Energy cannot be created or destroyed, but it can change from more-useful forms into less-useful forms. As it turns out, in every real-world energy transfer or transformation, some amount of energy is converted to a form that's unusable.Energy can neither be created nor destroyed i.e. the total energy of the universe remains constant; however, it transforms from one form to another. The energy that Earth receives from sunlight is balanced by an equal amount of energy radiating into space. The energy escapes in the form of thermal infrared radiation: like the energy you feel radiating from a heat lamp. With respect to matter, Earth is a closed system. Matter does not enter or leave. With respect to energy, Earth is an open system. Sunlight energy flows in and heat energy escapes.Energy travels in the form of radiation: solar radiation entering the atmosphere from the sun, and infrared radiation exiting as heat. If more radiation is entering Earth than leaving as is happening today then the atmosphere will warm up. Primary energy sources include fossil fuels, nuclear energy, and renewable sources of energy. Electricity is a secondary energy source that is generated from primary energy sources. Energy cannot be created or destroyed; it can only be changed from one form to another”. The Earth absorbs most of the energy reaching its surface, a small fraction is reflected. In total approximately 70% of incoming radiation is absorbed by the atmosphere and the Earth's surface while around 30% is reflected back to space and does not heat the surface. In physics and chemistry, the law of conservation of energy states that the total energy of an isolated system remains constant; it is said to be conserved over time. Energy can neither be created nor destroyed; rather, it can only be transformed or transferred from one form to another. Energy comes in six basic forms: chemical, electrical, radiant, mechanical, thermal and nuclear. In other research, you may find additional forms mentioned such as electrochemical, sound, electromagnetic and others. Under the consideration of law of conservation of energy, which has never been violated so far, the total energy of the universe is constant and can neither be created nor be destroyed. According to the first law of thermodynamics, the total amount of energy in the universe is constant. Energy can be transferred from place to place or transformed into different forms, but it cannot be created or destroyed.Eventually, the energy that began as Sunshine (short-wave radiation) leaves the planet as Earthshine (light reflected by the Atmosphere and surface back into space) and infrared radiation emitted by all parts of the planet which reaches the top of the Atmosphere. The Sun is the major source of energy for organisms and the ecosystems of which they are a part. Producers such as plants, algae, and cyanobacteria use the energy from sunlight to make organic matter from carbon dioxide and water. This establishes the beginning of energy flow through almost all food webs. Incoming ultraviolet, visible, and a limited portion of infrared energy from the Sun drive the Earth's climate system. Some of this incoming radiation is reflected off clouds, some is absorbed by the atmosphere, and some passes through to the Earth's surface. Earth returns an equal amount of energy back to space by reflecting some incoming light and by radiating heat. Most solar energy is absorbed at the surface, while most heat is radiated back to space by the atmosphere. Primary producers use energy from the sun to produce their own food in the form of glucose, and then primary producers are eaten by primary consumers that are in turn eaten by secondary consumers, and so on, so that energy flows from one trophic level, or level of the food chain, to the next.