1. A method for handling errors during script execution, comprising: receiving a script having a plurality of statements; adding each of the plurality of statements to a data structure, wherein the data structure holds each of the plurality of statements and information about a status of each of the plurality of statements; executing each of the plurality of statements in a predetermined order in a first iteration, the first iteration comprising each of the plurality of statements; updating, in the data structure, a status of each of the plurality of statements after execution during the first iteration, the status selected from a group comprising completed and failed; automatically and continuously performing subsequent iterations until it is determined that the status of each of the statements is completed, wherein performing subsequent iterations comprises: determining whether any particular statements of the plurality of statements do not have a status of completed; and executing only each of the particular statements that do not have a status of completed, in the predetermined order, in a subsequent iteration; and updating the status of any of the particular statements that completed successfully in the subsequent iteration; in response to determining that all of the statements have a status of completed after a subsequent iteration, terminating the subsequent iterations.