During their quarter-final match against Costa Rica in the World Cup, Van Gaal made the decision to substitute first-choice goalkeeper Jasper Cillessen for Tim Krul in the final minute of extra time; as Krul had not played at all in the Netherlands' four prior matches at the tournament, Van Gaal saved one of his three allowed substitutions to bring Krul on. This decision paid off, as Krul saved two of the Costa Rican penalties to send the Netherlands through to the semi-finals to face Argentina. The Dutch team lost to Argentina in another penalty shootout. Van Gaal ended his tenure as Netherlands manager on 12 July 2014 when the Dutch beat the hosts Brazil 3–0 in the third/fourth place play-off match with goals from Robin van Persie, Daley Blind and Georginio Wijnaldum.