Vettel only just managed to avoid the crashing Massa and Perez.