If a video is started in a QWebEnginePage instance and sometime later it si closed, the audio keeps playing, until the process is quit. Minimal script to reproduce (this is in PyQt 5.7 should be trivial to port to C++).
Run the script, it will create two windows, one of which is playing a youtube video. After the video starts, close that window. The audio keeps on playing even though the window is closed.