Despite being reduced to 10 players for an hour, the Hornets secured the points in Wales thanks to two late goals.