fixed socket closing
lÃadida