Added config callback for core.window.{width,height} and event  exits the application