Socket closing fixed.