On *NIX, this results in the process being terminated forcibly without having a chance to perform any necessary cleanup, which is not a good way of doing it. Is there a way to cleanly terminate a process on Windows?