rundb: replace sys.exit()

Replaces a `sys.exit()` in the `rundb.py` code with a `raise Exception`.

Relates to #294