UI: fix wrong variable handling in cpu.py and minor gui safe-reset behaviour.