Cancel the timeout when entering a mode