Fix energy usage when closed, Closes #332