core: Check that the socket exists before we attempt to close it on reconnects.
core: Check that the socket exists before we attempt to close it on reconnects.

haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2