"I didn't take it seriously to start with. And then I realised it was really him and that was a tricky conversation", she stated. Released to mixed reception, both with critics and commercially, the film went on to gross US$79 million worldwide. The same year, Dench reunited with Rob Marshall and Johnny Depp for a cameo appearance in "", playing a noblewoman who is robbed by Captain Jack Sparrow, played by Depp. She made a second cameo that year in Ray Cooney's "Run for Your Wife". In 2011, Dench reunited with director John Madden on the set of the comedy-drama "The Best Exotic Marigold Hotel" (2012), starring an ensemble cast also consisting of Celia Imrie, Bill Nighy, Ronald Pickup, Maggie Smith, Tom Wilkinson, and Penelope Wilton, as a group of British pensioners moving to a retirement hotel in India, run by the young and eager Sonny (Dev Patel). Released to positive reviews by critics, who declared the film a "sweet story about the senior set featuring a top-notch cast of veteran actors", it became a surprise box-office hit following its international release, eventually grossing $US134 million worldwide, mostly from its domestic run. "Best Exotic Marigold Hotel" was ranked among the highest-grossing specialty releases of the year, and Dench, whom Peter Travers from "Rolling Stone" called "resilient marvel", garnered a Best Actress nod at both the British Independent Film Awards and Golden Globe Awards. Also in 2012, "Friend Request Pending", an indie short film which Dench had filmed in 2011, received a wide release as part of the feature films "Stars in Shorts" and "The Joy of Six". In the 12-minute comedy, directed by "My Week with Marilyn" assistant director Chris Foggin on a budget of just £5,000, she portrays a pensioner grappling with a crush on her church choirmaster and the art of cyber-flirting via social networking. Dench made her seventh and final appearance as M in the twenty-third "James Bond" film, "Skyfall" (2012), directed by Sam Mendes. In the film, Bond investigates an attack on MI6; it transpires that it is part of an attack on M by former MI6 operative, Raoul Silva (played by Javier Bardem) to humiliate, discredit and kill M as revenge against her for betraying him.