This is used to install your own custom chunk exit handler. See the "Custom Chunk Handlers" section below for more information. StopOnExit() is internally built on top of this.