When the extension manager shuts down, osquery states it should
deregister.
When the extension is started again, having deregistered can avoid failures
when osquery starts the new process before the register watcher has had
time to remove the old extension from its map.
When the extension manager shuts down, osquery states it should deregister. When the extension is started again, having deregistered can avoid failures when osquery starts the new process before the register watcher has had time to remove the old extension from its map.