Fix poweroff (by Tigrouzen)