The fastest way to close a program that won't respond
When a program stops responding, the quickest fix is Task Manager. Press Ctrl + Shift + Esc to open it directly, find the frozen program in the list, click it once, then click End Task at the bottom right. The program closes in seconds. If Task Manager itself won't open, use Alt + F4 while the frozen window is active — this forces the window closed without needing Task Manager at all.
Both methods work on any Windows version. Task Manager is more reliable because it shows you exactly what is running and lets you close one program without affecting others. Alt + F4 is faster when you know which window is frozen and Task Manager is also frozen or slow to load.
Key Takeaways
- Press Ctrl + Shift + Esc to open Task Manager, select the frozen program, and click End Task to close it when ready.
- Alt + F4 closes the active window without opening Task Manager, but only works if that window is the one you want to close.
- If Task Manager won't open, restart Windows in Safe Mode and try again from there.
- Command Prompt can force-close a program by name if you know the exact filename, using the command taskkill /IM filename.exe /F.
Using Task Manager to close a frozen program
Open Task Manager by pressing Ctrl + Shift + Esc. A window appears showing all running programs. Look for the one that is not responding — it usually has the words "Not Responding" next to its name in the Status column. Click it once to select it, then click the red End Task button in the bottom right corner of the window.
The program closes within a few seconds. You lose any unsaved work in that program, but other programs stay open and unaffected. If you do not see the Status column, click the Processes tab at the top of Task Manager to make sure you are looking at the right list.
If Task Manager opens but is very slow to respond, wait 10 to 15 seconds before clicking anything. Sometimes Task Manager itself needs time to load when the system is under heavy load. If it still does not respond after waiting, close it and try Alt + F4 instead.
Using Alt + F4 when Task Manager is frozen
Click the frozen program window to make sure it is the active window — you should see its title bar highlighted. Then press Alt + F4. Windows closes that window when ready without opening any other program.
This method works even when Task Manager will not open, but it only closes the window you are currently looking at. If multiple programs are frozen, you have to close them one at a time. Alt + F4 also works on most other programs that are responding normally, so it is a useful shortcut to remember for any situation.
Force-closing a program from Command Prompt
If both Task Manager and Alt + F4 fail, open Command Prompt. Press Windows key + R, type cmd, and press Enter. A black window opens. Type the command taskkill /IM filename.exe /F, replacing "filename" with the actual name of the program you want to close. For example, to close Notepad, you would type taskkill /IM notepad.exe /F. Press Enter and the program closes.
The /F flag forces the program to close without asking to save. You need to know the exact filename of the program, which you can find in Task Manager by looking at the Image Name column. If you are not sure of the filename, type tasklist and press Enter to see all running programs and their filenames.
Command Prompt works even when the graphical interface is frozen, making it a reliable last resort. Close the Command Prompt window when you are done.
Restarting Windows in Safe Mode if nothing else works
If Task Manager, Alt + F4, and Command Prompt all fail to respond, restart your computer in Safe Mode. Press Windows key + I to open Settings, click System, then Recovery on the left side. Click Restart now under "Advanced startup." Your computer restarts and shows a menu with boot options.
Select Troubleshoot, then Advanced options, then Startup Settings. Press 4 or F4 to start Safe Mode. Windows loads with only essential programs running. Open Task Manager again and close the frozen program. Safe Mode removes interference from background programs that might be preventing Task Manager from working.
After closing the program, restart your computer normally by clicking the Start button, then the Power icon, then Restart.
Why programs freeze and how to prevent it
A program freezes when it stops responding to your input — usually because it is waiting for data from the internet, a file, or another program that never arrives. It is not actually broken; it is just stuck. Force-closing it does not damage Windows or your other programs. The frozen program straightforward stops running.
To reduce freezing, keep Windows and your programs updated, close programs you are not using to free up memory, and restart your computer once a week. If one program freezes repeatedly, uninstall it and look for an updated version or an alternative. Freezing usually means the program has a bug that the developer needs to fix.
Frequently Asked Questions
Will force-closing a program damage my computer?
No. Force-closing stops one program without affecting Windows or other running programs. You will lose any unsaved work in that program, but nothing else is harmed. Restarting your computer is safe too — Windows is designed to handle sudden shutdowns.
What is the difference between End Task and Restart?
End Task closes the program. Restart closes the program and starts it again. Use End Task if you just want the program to stop. Use Restart if you want to reload it fresh, which sometimes fixes freezing caused by a temporary glitch.
Can I force-close a program without losing my work?
Not with these methods — force-closing always closes the program without saving. If the program is frozen but you can still see a menu, try File > Exit or File > Close first. If those do not work, the program is truly frozen and you will lose unsaved work.
Why does Task Manager sometimes show "Not Responding"?
A program shows "Not Responding" when it has not communicated with Windows for several seconds. This usually means it is waiting for something — a network connection, a file read, or another program — that is taking too long. Force-closing it is the correct response.
Is it safe to use Command Prompt to close programs?
Yes, as long as you type the command correctly. The taskkill command is built into Windows and is designed for this purpose. Double-check the filename before pressing Enter to make sure you are closing the right program.