Added the check to detect FILE_NOT_FOUND error