Main started in the first nine SPL games of the 2009–10 season before being edged out by former Kilmarnock and Rangers goalkeeper Graeme Smith, who had missed the early part of the season due to an injury sustained in a pre-season match. During this run in the team Main saved a Derek Riordan penalty in a 3–1 win over Hibernian in the Scottish League Cup. Main remained on the substitutes' bench after Smith made his way into the starting line-up, and was released by St Johnstone at the end of the 2009–10 season, having become the player with the most appearances for the club (361). This record was broken by Steven Anderson in 2016.