`total_energy` stats are written to disk. Closes #216