Fix removal of sockets on shutdown