Catch exception when path is not found.