Added grace period to poweroff script