gui: Use trap to make sure temporary files are removed.
-rw-r--r-- 1677 common
-rw-r--r-- 1971 config
-rw-r--r-- 3812 gui
-rw-r--r-- 12605 subcommand