The current assumption is that Output::enabledChanged(false) always comes before Output::destroyed. (cherry picked from commit 489cd31e)