Handle errors from chown and chmod.