Fork me on GitHub

When I connect to nrepl with lein repl :connect <port> command, if I mistakenly run an infinite-loop code in there, when I kill process or close terminal, that infinite running program is terminated too. Is there a way to do the same for cursive? I tried cursive remote repl, but it doesn’t seem to work that way. When I close the repl tab or click stop, the infinite running program still continue.