even better error catching if shortcuts and key codes weren't stored to disk

Signed-off-by: nuss <st9fan@gmail.com>