benchmarks/polygons: check failures at the end of the script