If you are using a car dock that launches your phone into dock mode, just set up two new events where the conditions are "When in dock mode" and "When not in dock mode".
I do that and then have it launch my music and Nav apps, set volume, etc., then kill those apps when I leave dock mode. Works...