make socket a local variable in DefaultSocketConnector.call