Added trigger setting to terminate() method in execution.