To safely shut down your hub, navigate to Settings, then select Shutdown.
Shut down the hub using this option whenever possible. If the regular hub interface is not accessible for some reason, try a reboot or shutdown using the Diagnostic Tool before resorting to more drastic measures like pulling power. (The hub is, essentially, a computer, and treating it like one will help avoid problems.)