As a companion to bug1617, a discussion starting with komintern text 299382 came to the conclusion that there should be a /opt/thinlinc/etc/sessionlogout.d that can contain scripts that are run by VSM Server when sessions are terminated. With the current model, we don't know exactly when sessions are terminated (we must wait for the report from VSM Agent, and if we're unlucky, there won't be any report as VSM Agent were not running when the session terminated).