Report potential errors during Close and Chmod.
Report potential errors during Close and Chmod.

In practice it should be safe to ignore errors from Close() on most Unix-like
platforms. But its better to be paranoid.

otiai10/copy,otiai10/copy