Enhances code parsing.
Adds a `'stop'` event called just before process termination.