Wait for account manager shutdown during server shutdown.