Consolidate shutdown conditions.