Made socket release the strong reference properly