So every time I try to run a code, it first gives me that message and then just "Not connected". How can I fix this?
There is a very similar question Getting started with SLIME and SWANK: Lisp connection closed unexpectedly: connection broken by remote peer but I'm using Portacle and as far as I know it should take care of stuff like slime.