Wrap main loop in try/except so one unexpected error doesn't stop the bot from generating other indexes, add edit summaries