Apply secure log and update the terminate sequence.