Engine.halt
From Yate Documentation
engine.halt is a message sent by the engine to the modules that have a message handler registered for it and tells them that Yate is stopping and this is the last chance to clean up before Yate kills all module threads.
This message has no parameters and its return value is ignored by the engine as it only serves as a means of shutdown notification towards the listening modules.