terminated check.
checking if instance terminated.