delete socket after dc