Adds code to resume text processing on exception.