tweak shutdown