fn rotate_session()
Ends the session in progress as exited and starts the next session of the same run.