adding aws-instance-terminate function.