Fixed failed teardown in ec2 test.