Casey Stoner revealed that he almost retired from the Portuguese Grand Prix due to back pain developing during the race.