Handle non-files and not-found files gracefully