iPods sometimes have a mind of their own when turning off. What usually fixes it is to move to another menu and then try to turn off. Or switch the lock on and off and then try it. Or do both. One of these things usually works.