Add Terminate event