Motherwell boss Stuart McCall admits he was relieved his team held on for a 3-2 victory over St Johnstone at Fir Park.