Sam Vokes ended his professional football career during Gillingham’s final match of the season, receiving a guard of honour from teammates.