Set your file to critical process
To learn how to kill it safely check out my other repo
Critical processes in Windows are processes that are essential for system stability. If a critical process is terminated or mismanaged, it can result in a system crash.
You can interact with processes using System.Diagnostics.Process
It is possible to safley terminate critical process as done in my repo linked above
Star my repo! ⭐