This code was previously in `_onDisconnect` which would be triggered by a direct call to `Inspector.disconnect()`. Under normal circumstances, we want to tear down the agents, documents and servers before actually severing the Inspector connection. The `_onDisconnect` handler remains to handle unexpected disconnects that are not covered by the `detached` event from web inspector.