Thanks, that's a bug, Write should return the first error encountered. Fixing.