The seven-time world champion badly damaged his car in the final free practice crash before finishing fourth for Ferrari.