I get get the thread id [thread-id], but how do I get the process id of the cook process? Is the an "exit-hook" that always executes when the cook file is done, success or failure?