What method runs upon exiting the window?

What method or methods are run, that I can override, when the game window is closed?

I would need it to exit properly and kill some threads that I’v made.

But I dont know which method to override…



Any suggestions?

Try overriding Application.destroy(), make sure to call super