fixed shutdown proceedure