Close external process

Hello,

I have a question:

In my game I open the explorer.exe with:

private System.Diagnostics.Process ExplorerProcess;

void OpenExplorer(){

ExplorerProcess = System.Diagnostics.Process.Start("explorer.exe");

}

Now I want to close the explorer:

       ExplorerProcess.CloseMainWindow();

I also tried:

       ExplorerProcess.Kill();

But both won’t work. What I want is that the explorer window I opened will be closed.
I get the exception that the process has already been closed, but I definitvely don’t call that in my code.

Do you close the window manually?

No, of course not. That explorer window is still open.

anyone an idea?

no one?