How to restart Kodi when freezes (without keyboard/mouse)

Hello.

My Kodi freezes from time to time. When it happends I have to connect my mouse and keyboard, then force quit, restart, … and it take a lot of effort (especially for my wife). Is there a more convenient way, how to do that? Eg. auto restart when freezed?

Im also using “Unified remote” app on my iPhone. But its not much more better :/