The solution used in some high-security environments is to build a
physical fence around the terminal and its user. Opening the gate in
the fence forces an immediate logout.
This is more than most sites would want. However, it might not
be unreasonable in some installations to protect priviledged terminals
in this way.
John Nagle