Since this parameter must be `quit` or `exit`, I suggest set it to a default value, then user can use this function like this:
`session.exit_session()`
This will be more convenient than `session.exit_session(cmd)`