As does the energy use by miners. So, energy use reacts to price, and then difficulty reacts to energy use. That's OP's point.
> if miners started to shut down...
Actually, that would be _very_ interesting. Then you'd have millions of dollars of hardware doing nothing. And doing nothing is losing money. Maybe at that point attacking the network is more profitable than watching your hardware depreciate.