Correct problem with hanging socket