If the AI has sufficient "real life" access, think a robot body, then it can do wire-heading. Assuming it is smarter than us, and we have thought of this idea - it will also think of this idea. Now it doesn't have a reason anymore to do anything else (except maybe kill all humans so that we don't stop it from wire-heading).