Gracfully handle not authorized file acces

Prevent app from crushing when a not authorized file is accessed, causing an EPPRM error.