Handle BrokenPipe, StandardError and IOError in fat_wrote and break out
Merge pull request #369 from nmccready/feature/issue_368_broken_pipe

Handle BrokenPipe, StandardError and IOError in fat_wrote and break out