almost clean shutdown