Removing disconnected socket