Report errors while writing files.
Close #103.