Disable the code added in the previous change during shutdown, since it's pointless at that stage and may cause crashes.