More than 100,000 fans thronged the Sepang International Circuit as they bid goodbye to the last Formula 1 race on Malaysian soil.