Added a try-catch in-case of trying to go over guarded files