waiting for shutdown that actually done