Redesign the internals of Spark for fault-handling