The rule is that it has to be constructed after APP_MAIN and destructed before APP_MAIN exit.
Report message to a moderator