Better turn off the air conditioner first?

Hello municipality, time and again the question arises whether it is more beneficial for the air conditioners in cars if it has been switched off some time before the engine is switched off. Does anyone know advice? Thank you, woka11