made sure gpio wasn't reopening device