In case the lua script has an error, the simulation is stopped and prevented from continuing.