A frozen or stuck Windows program can be closed with Alt+F4, Task Manager’s End task button, or the taskkill command in Command Prompt or PowerShell.
Every Windows user eventually runs into an app that stops responding — a frozen browser, a stuck game, or a work program that won’t close. Knowing how to end a program on Windows without losing unsaved work is a practical skill, and the right method depends on how stuck the app actually is. Below are the four approaches that cover every situation on a Windows 10 or Windows 11 PC, from a single keystroke to the tools that handle fully hung processes.
Which Method Works For A Frozen App?
A genuinely frozen app needs a force-close tool rather than a standard window close. Alt+F4 won’t work on a hung program — Task Manager’s End task or the taskkill command are the correct picks. If the app is still responding but you simply want to exit quickly, Alt+F4 is the fastest route. The table below summarizes when each method fits.
Method Comparison Table
| Method | Best For | Limitation |
|---|---|---|
| Alt+F4 | Closing responsive apps with one keystroke | Does nothing on frozen or hung programs |
| Task Manager (End task) | Force-closing most stuck apps | May fail on deeply hung system-level processes |
| taskkill /IM /F (Command Prompt / PowerShell) | Fully hung processes that ignore Task Manager | Requires knowing the exact executable name |
| Restart PC | System-wide lockup or when nothing else works | Closes everything — unsaved work in other apps is lost |
Ending A Program On Windows: The Four Methods That Cover Every Situation
1. Alt+F4 — Close The Active Window
The Alt+F4 shortcut sends a close signal to whichever window is currently in focus. It acts exactly like clicking the X button in the top-right corner — the app gets a chance to prompt you to save before it shuts down.
When it works: The app is responsive and you want to close it fast. Click the app’s window to make sure it is focused, then press Alt+F4. When it fails: A frozen program ignores the keystroke entirely, and you need to move to Task Manager.
2. Task Manager — Force End A Stuck Process
Task Manager is Microsoft’s built-in tool for viewing and ending running processes. To open it:
- Press Ctrl + Shift + Esc simultaneously, or
- Press Ctrl + Alt + Delete and choose Task Manager from the menu, or
- Right-click the taskbar and select Task Manager.
Once Task Manager opens, find the unresponsive app in the Processes tab. Click it to select it, then click the End task button in the bottom-right corner. The program should close within a few seconds.
The app vanishes from the Task Manager list and its window closes.
3. Taskkill In Command Prompt Or PowerShell — Force Close By Name
When Task Manager refuses to end a process, the command line can step in. The taskkill command terminates a program by its executable image name.
Open Command Prompt or PowerShell:
- Press Windows + R, type cmd, and press Enter, or
- Right-click the Start button and choose Windows Terminal or PowerShell.
First, identify running processes with tasklist — this shows every active process and its image name. Then force-close the target with:
taskkill /IM processname.exe /F
For example, to close a frozen Firefox browser: taskkill /IM firefox.exe /F. The /F flag forces immediate termination. In PowerShell, an alternative is: Get-Process processname | Stop-Process -Force.
A message confirms the process has been terminated, and the app window disappears.
Heads-up: Typing the wrong executable name (msedge.exe instead of firefox.exe, for instance) returns an error and leaves the app running. Run tasklist first to confirm the exact name.
4. Restart The PC — The Last Resort
If a program still refuses to close after trying every method above, restarting Windows will terminate every process cleanly. This is the option to use when the system itself feels unstable or unresponsive.
Caveats And Limits For Force-Closing Methods
Every force-close method shares one risk: any unsaved work in that program is lost. These tools exist for unresponsive apps, not routine closing. Microsoft’s own guidance for frozen apps points to Task Manager and the Processes tab as the primary remediation.
In tablet mode or full-screen app layouts, the normal close button may not be visible. On a touchscreen, dragging the app down from the top edge can close it — and when that gesture fails, Task Manager still works through the keyboard shortcut.
On the command line, the /F flag in taskkill is what forces termination. Without it, Windows sends a graceful close request that a frozen app may ignore.
Common App Executable Names For Taskkill
When using taskkill, you need the exact process name. Here are the most common ones.
| Application | Executable Name |
|---|---|
| Google Chrome | chrome.exe |
| Mozilla Firefox | firefox.exe |
| Microsoft Edge | msedge.exe |
| Microsoft Word | winword.exe |
| Microsoft Excel | excel.exe |
| Adobe Photoshop | photoshop.exe |
| Notepad | notepad.exe |
When An App Freezes — The Right Sequence
Work through these four actions in order, and you will almost never need to restart your PC just to close one stuck program.
- Press Alt+F4 with the app window focused. If it closes, you are done.
- Open Task Manager with Ctrl+Shift+Esc, select the app, and click End task.
- Open Command Prompt or PowerShell and run
taskkill /IM processname.exe /Fwith the correct executable name. - Restart the PC if the program still will not close.
Knowing the exact executable name ahead of time (chrome.exe, msedge.exe, winword.exe) makes step three almost instant. Most users will never need to go past step two.
References & Sources
- Microsoft. “Force Closing an App” Microsoft Q&A guidance on using Task Manager and tablet-mode gestures for unresponsive apps.
