debugger: also exit when the repl emits 'exit'