Update socket destruction, in case of DI.