Energy is NEVER destroyed making this an interesting topic. In reality this energy is just isolated from that system and just changes states. You could do anything for your story, just make sure to include those points.
Hope this helped :)
5.1m questions
6.7m answers