Improved check of app features
Fix log close race condition