Partial Shutdown code