Glamorgan's McIlroy, meanwhile, was understandably quite disappointed. All he needed to do was somehow put bat to ball and run a single off the last ball of the match.
He did manage to touch the ball but with the outside half of his bat and was taken behind the stumps.
Glamorgan fell agonisingly short in their pursuit of a world-record chase of 593 as their English County Championship match against Gloucestershire ended in a last-ball tie.
The Welsh county dramatically levelled the scores in the Division Two match at the famous old College Ground in Cheltenham, leaving last man McIlroy requiring just a single off the final ball to get them over the line.
However, he edged Ajeet Singh Dale's delivery and was brilliantly caught by Bracey behind the stumps to spark scenes of mayhem among delighted home supporters in Cheltenham.