Fixed suspend and hibernate and improved logout
Merge pull request #10 from pvdk/shutdownfix

Fixed suspend and hibernate and improved logout