handle sockets that die