YouCarlo Beenakker's answer is right. When t>0, you cannot close the contour in the lower half-plane, because the exp in the numerator is large in the lower half-plane. You must close the contour in the upper half-plane. Then your integral is 0, for $t>0$. When $t<0$ your series computed with residues converges.