Avoid spurious warnings on shutdown