Variable APP_IS_SHUTTING_DOWN

set to true when exiting main - to detect destructor calls for resources by GC

bool APP_IS_SHUTTING_DOWN = false;