Fluctuations and the energy-optimal control of chaos