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