Refactored power_off to create constants to retries and retry interval