Check if the list of variables doesn't exist.
Changed the termination procedure.
Changed the processing of the termination event.