I run xubuntu 8.10 and I want to shut down my VirtualBox guest machine when I log out. That is I want to shut it down automatically, I usually remember to do it before I logout but sometimes I forget and it is then shut down 'ungracefully' with risk to its contents.
One would have thought that there would be 'hooks' for running stuff at shutdown but I can't find any at all.
Does anyone have any suggestions?