How to Stop Windows 11 from Automatically Closing Apps

The Aggressive Memory Management

Windows 11 utilizes a proactive memory management system designed to keep your active foreground window running smoothly. To achieve this on computers with limited RAM (8GB or less), Windows will sometimes automatically suspend or completely close background applications without warning. For example, if you leave a heavy spreadsheet open in Excel and switch to a demanding video game, Windows might silently kill Excel to free up memory for the game. While this prevents the entire system from crashing due to memory exhaustion, it can lead to catastrophic data loss if you had unsaved work in the app that was suddenly terminated.

Configuring Background App Permissions

To prioritize data retention over absolute performance and stop Windows 11 from automatically closing your important background applications, you must adjust their individual power and background permissions.

Press the Windows key + I to open Settings, click on Apps in the left sidebar, and then select Installed apps. Scroll through the list and find the specific application that keeps being unexpectedly closed (e.g., Microsoft Excel or Google Chrome). Click the three horizontal dots next to the app’s name and select Advanced options. (Note: Not all apps, particularly classic desktop Win32 apps, have this menu. This primarily applies to UWP or modern store apps). Look for the section titled “Background apps permissions.” Click the dropdown menu under “Let this app run in background.” By default, it is likely set to “Power optimized (recommended)”. Change this setting to Always. This instructs Windows that this specific application is critical and must never be suspended or terminated to save battery or memory.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.