How to exit from debug

When I press F5 - Start Debugging, works fine (I use Black Magic Probe).
However, after I want an exit from debug whenever I click Stop Debugging, Build, Upload I still got Debugging window (PlatformIO Debugger). If I click Terminate task - No task is currently running.
Is there an easier way than restarting Visual Studio Code?