test the shutdown