Fix set health and terminate for autoscaling instances