Pierce says ‘thank you’ as his career comes to a close