It is not recommended to restart the hubs by cutting power. You could corrupt your hubs database. This method is good however if your hub is completely locked up.
You can follow @stephack’s example in the thread below and create a rule in RM that will restart your hub. Here are a few screenshots Stephen posted as examples: