When I do ",quit" or M-x slime-quit-lisp it calls `slime-connection' to determine what connection to kill, which in its turn returns value of `slime-buffer-connection'. But if the repl is not the defualt this value is wrong, namely, it returns connection of the default repl and the wrong connection gets killed.