Mercedes-Benz recommends disconnecting the connecting cable only when the vehicle is stationary.
Ending Android Auto
To end the connection of Android Auto (with cable):
disconnect the connection via the connecting cable between the mobile phone and multimedia system.