Idling won't do it harm. Especially for 40 minutes. The big thing is the water build up in the exhaust that you wouldn't want sitting there.