Properly exit the repl process.