Fix for dead sockets