Add a command to terminate the connection (exit).
Move the stop recording command to cpp.

Means I can add help doc to it.