Fixed begin/resuce block not handling URI::InvalidURIError correctly. When the crawler finishes running, and newline is inserted.