New preprocess function "filterForeignErrors".  Cleanup.