Lewis Hamilton has admitted that he briefly considered walking away from Mercedes before the season's conclusion following a disappointing Sao Paulo Grand Prix.