AutomationController only shuts down device if not debug mode
Rolled back modification to HookDefinitions