fixed garbage collection issues dropping socket