Implement an auto-reconnect function like slime has

I often bring down my clojure VM and then back up.
In SLIME there was a variable to do that.
I implemented something similar for nrepl.
I'm not sure doing it in nrepl-current-session is the best idea though.
Thanks,