Hi,
Thank you for coming Microsoft Q&A.
We noticed you encounter an expected waring event log which caused as Windows automatically closes any registry handle to a user profile that is left open by an application.
According to Microsoft states, starting with Windows Vista, the User Profile Service will force the unloading of a user profile when that user logs off. This is a situation where the functionality of forcing the unload of the user profile may break an application if registry handles are not closed in the process. This new User Profile Service functionality is the default behavior. (Source: A COM+ application may stop working in Windows when a user logs off)
We could try the resolution recorded in that source article to enable group policy Do not forcefully unload the user registry at user logoff policy which is located under Computer Configuration > Administrative Templates > System > User Profiles.
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.