I had the same problem during and straight after charging the phone. Disabling S Voice in the app manager seems to have stopped it from occurring.
EDIT: Apparently this did not fix the problem as it still randomly enters driving mode and quits all applications. When I disabled S Voice it only...