Record session id on package stats
Fix bug in `Run.stop()`.

Otherwise selftest crashes if you call `run.stop()` without calling
e.g. `run.match()` first.