use instances attribute when terminating EC2 instances
wait for EC2 instances to terminate