combined all power off functionality (detection of capabilities, permission check and power off execution) in PowerOffManager class