Check return value from attempted file creation