As per my understanding, $f(z)= {\frac{e^{-z}}{z+1}} $ is not analytic at $z=0$, so we cannot apply Cauchy's Fundamental Theorem. Which states " if $f(z)$ is analytic at all points within and on the closed contour C, then $\int_C f(z) dz = 0$"
But the answer provided is $0$ by applying Cauchy's Fundamental Theorem. What am i missing ?