I see all to many users switching of their boxes with the power switch when they crash or freeze. This just add to the issues you all ready have and corrupt yout box settings.
So instead you should make your self acquainted with the Terminal connection to your box.
This can be done several ways. There are softwares to install on your computer. I recommend Putty.
I have attached putty to this post and here is also a short youtube video explaining how to connect with putty.
So after you have installed putty and setup your login. For all boxes the username is root as in the video.
Most image demand that you go to the box settings and provide a passoword your self before you can log in with putty.
If not done yet you have to do this. Most images has the set password under Network Menu.
Else just check around your setup or system meny and you find it.
When you have set a password you can login with putty.
Now we have the Terminal window open and can now restart the box
In terminal window just type reboot now putty window will close by it self and your box will shutdown proper before it starts up again.
This can take some time, up to several minutes so be aware that the box is not responding but it's normal.
All this works of cause just as fine with DCC/VUCC or Shell in a box extension for the web interface
So to keep your box in good shape use Terminal to force reboot and not the power switch :)
Install file is found in the attached zip file or download your self from https://putty.org/