added error handling for gdocs failures