added code to terminate instances, delete keypairs, and delete security group