When you stop the vehicle, there can be a fairly brief period where under the hood temps spike as the exhaust manifolds dump heat in a very enclosed area and no air moving through.
This would be a an interesting (or not) experiment to put a few sensors about and see what it does go up to.