[ubuntu] Shutdown log

view story

http://ubuntuforums.org – I'm looking for a log file that shows what programs are running at shutdown and if a program hangs during shutdown. I have this one program that constantly hangs, and shows up as an unknown program, during shutdown/reboot/log-off. I think there should be a log of the shutdown process, but I have no idea where to find it. (Hardware)