Made output IO errors crash and burn rather than produce missing data. Helps debug issue #19.