Fixed bug where file content stream kept logging errors even after error
limit reached.