fix closing the repl via exit