added prevention from poweroff by power button