I was suffering the same problem in Ubuntu 12.04 both in Unity and Gnome Desktops, so I tried to look for the source and even if you can close kalarm correctly the nepomuk and akonadi servers continue to run in the background.
After exiting kalarm if you kill manually akonadi and nepomukserver then you can close the unity/gnome session in Ubuntu 12.04 without errors. So the problem seems to be related to nepomuk and akonadi. NOTE: This problem has been reported also in the KDE Bugtracking System but it seems it only affects Ubuntu. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1053783 Title: Ubuntu 12.04 - Stalled shutdown after having had KAlarm opened; with package info. Status in “gnome-session” package in Ubuntu: Confirmed Bug description: In Ubuntu 12.04, the shutdown is stalling - for about 2 minutes - but only on occasions when I have opened - and then quit - KAlarm. A window pops up Stating that, 'A Program is still running'; Unknown (not responding); and, there are 3 buttons to choose: 'Lock Screen', 'Cancel' and 'Shutdown Anyway'. Initial report was Bug #1053779 but had no package information. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: gnome-session-bin 3.2.1-0ubuntu8 ProcVersionSignature: Ubuntu 3.2.0-30.48-generic-pae 3.2.27 Uname: Linux 3.2.0-30-generic-pae i686 NonfreeKernelModules: nvidia ApportVersion: 2.0.1-0ubuntu13 Architecture: i386 Date: Fri Sep 21 13:22:35 2012 ExecutablePath: /usr/bin/gnome-session InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423) ProcEnviron: LANGUAGE=en_AU:en PATH=(custom, no user) LANG=en_AU.UTF-8 SHELL=/bin/bash SourcePackage: gnome-session UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1053783/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

