Log and report errors using GUI
Use mktemp