Call pyxel.quit() without python app quit or with exit callback
Hi,
I'm making a network based game using pyxel. When pyxel quits, the python app it's destroyed but I'm need to shoutdown networking before that. Can I stop the game loop without exit the entire python application?, or, alternatively, can I define exit callback to be called by pyxel.quit() before it exists? I'm trying with **atexit** module but callbacks are ignored.

Thank you!