Found an interesting article to prevent USD from closing a session with unsaved changes.
How to prevent USD from Closing a Session with Unsaved Changes?
Published by Srinath Pega
Microsoft Certified Trainer (MCT), Microsoft Business Applications | Microsoft Dynamics 365 & Microsoft Power Platform Solution Architect | Microsoft Business Applications Solution Advocate 🥑 | Author 📖 | CEO: Customer Experience Obsessor | The Dynamics 365 Guy 🏄 | Power Platform | Dataverse | Power Fx | Azure | Azure DevOps Addict 🚀 | Copilot Studio | Open AI | YouTuber | Blogger | Speaker | Travelle 🛫 View all posts by Srinath Pega