At least for my particular setup, xmaxima has a very
unfortunate behaviour at shutdown. I'm running a Linux
x86 box, KDE 3.4, Tcl 8.4, maxima 5.9.1. Somehow, it
seems that "pid" is set to -1 in line 13603 of xmaxima.
This sends a kill -TERM to every process it can,
wiping out my login session and any associated jobs
running. If run as root, it wipes out every logged in
session and every running daemon.
A sanity check on that parameter might be in order
before issuing the kill on Linux.