St Mirren manager Danny Lennon was delighted with his side's spirit after they held off a late fightback from Motherwell to win 2-1.