McLaren keeps cool in tense tie