You can stop recording the current session using the stop function.

SessionStack.stop();