Add `.terminating` hook.