The shutdown protocol is modelled after online/offline preparation. Session management code is copied from libegg. Not yet used.