Fixed out of disk space error message (and general i/o error code)
Clarified a comment. When running out of disk space, we probably can't write to the log either.
Merge branch 'daniel_1945' into next