fix: socket instance in disconnect callback