fix sed operation when pass or secretkey contains certain special characters
added function to clean up route53 when terminating an ec2 instance