I just took it as a "Hail Mary pass" ie: a long shot, last ditch effort as the phrase is used in American football.
Also, the prayer referenced in this idiom starts off as "Hail Mary, full of grace" and the main character's name is Grace.
edit: beaten by 6 min.