lua : cleanup stack during CLI initialisation