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