With all due respect, your reply is absolute nonsense.
For a start, if it were true, then you’re saying that Netcam Studio may completely break the day you have a power cut. Or Windows Update decides to install something. Or whatever. I’m pretty sure that wouldn’t be acceptable to most end users.
More importantly, Windows does not just ‘make an end proceess’ when being rebooted. It notifies services that Windows is about to shut down so they can shutdown gracefully. It is nothing like a crash.
I’ve been writing C# software for decades so have quite a lot of experience in this field.