Custom handler to remove ec2 instances