Beckham thankful for ending career at PSG