Making repl function ask if should exit from bash