now shutdown safely