From http://awesome.naquadah.org/wiki/ShutdownDialog