error writing "stdout": I/O error error writing "stdout": I/O error while executing "puts "Error saving config: $err"" (procedure "savestuff" line 90) invoked from within "savestuff ." (procedure "doquit" line 6) invoked from within "doquit" invoked from within ".#bar.#bar#file invoke active" ("uplevel" body line 1) invoked from within "uplevel #0 [list $w invoke active]" (procedure "tk::MenuInvoke" line 50) invoked from within "tk::MenuInvoke .#bar.#bar#file 1" (command bound to event)