St Johnstone captain Jason Kerr admits he was taken aback by manager Tommy Wright's decision to leave the club after seven years in charge.