I have now added “killall + name_of_ app” to my build (EXE from C) script, so it cleans up memory and prevents problematic processes from overheating the CPU.
To check current CPU usage, run “top” command on the terminal and to look for processes, you can run “ps aux.”