Added error handling for google spreadsheet