@felmue Well that's weird. Your code runs fine, and the unit powers off! I must have some screwy logic in mine somewhere. Thank you for your help.