Do something before the death of a process.