fix calling socket static method in closure