Module instances can be added to a running Application,
simplifying support for adding new components, such as a renderer,
input handler or higher-level framework.
Creates a new Module instance
@:value(new Event<Int>())onExit:_Event_Int_Void<Int ‑> Void> = new Event<Int>()
Exit events are dispatched when the application is exiting