Extended terminate-instance script to support terminating non-ASG instances