Fix type error in shutdown script.