Try not to fail horribly on write permission errors.