Add onAfterRun hook that only runs once.