To help keep things cool; sometimes I use a can of compressed air to rapidly cool things down. If you turn the can upside down and the spray. The liquid gas rapidly cools that area and then evaporates. So you don't have to worry about the electronics.
Sorry I should have been more clear. I don't take a motor so hot you could fry an egg on it and make it as cold as ice. Instead I constantly moniter it and spray a little here and there. I only do it on the outside. When you allow small delicate parts to go from extremes in hot and cold, things can break.
you must know that something that might feel hot and burning on your hands is only 117 degree fahrenheit. this is a 'no sweat' temp for electronics.
i personally would not use something to cool electronics of fast. This might cause a loose contact on the print where the transistors/fetts are soldered on..