system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Why can taskmanager close my running programs when I'm not able to close them manually?
gpt
Closing the window from within the running process is trying to call a function of the running process whereas stopping it from task manager uses an operating system call to kill the process instead of the process trying to close itself.

I hope that makes sense.