Energy dynamics of a nonequilibrium unitary Fermi gas