Fix shutdown in the case the entire machine is going down.

Change-Id: Idaf19e5703886029e05e95ac5a7175eb9346762c