delete socket from list cleanly