Get rid of annoying log messsages on shutdown.