r11982: ensure the fde event gets freed before the socket itself, as otherwise