Fix double destroy crash

When closing a network tab, `destroy` is already being called in `commandManager.close()`. In `network.js` it was being called after deleting the entry from the `Clients` map, which was causing `destroy` to crash when  trying to read the list.