[Debugger] If we get a disconnected exception, set HasExited to true and suppress further exceptions.

Fixes bug #10581