Handling some file creation errors.