Luck deserted the Spaniard when he was on the precipice of a best-ever result with Aprilia, with a mechanical issue forcing him to retire