Close running Application

we can do it with: Process.GetProcessesByName(…

BUT we should keep in mind:

  • only processes for our bot are relevant. We dont want touch other running session’s processes
  • processes can also have sub processes

also have a look here: