Do we need to handle closing the repl session gracefully here?