don't delete socket twice