[Debugger] Stop trying to dequeue events once the vm disconnects

Possible fix for bug #10581