Fix checking for unhealthy as instances.
create function to check for asMember.
Exit if not a member of the autoscaling group.
this is a much nicer way to to exit upon failure.